Android Open Source - androidphotobackup Photo Backup Service Starter






From Project

Back to project page androidphotobackup.

License

The source code is released under:

Apache License

If you think the Android project androidphotobackup listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.brightsilence.dev.androidphotobackup;
//from   www  .  j  a  v  a  2  s .com
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 */
public class PhotoBackupServiceStarter extends BroadcastReceiver {

    PhotoBackupAlarmReceiver m_alarm = new PhotoBackupAlarmReceiver();

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED") ||
            intent.getAction().equals("android.intent.action.QUICKBOOT_POWERON")) {
            // TODO: Should only set the alarm if this is required.
            m_alarm.setAlarm( context );
        }
    }
}




Java Source Code List

com.brightsilence.dev.androidphotobackup.ApplicationTest.java
com.brightsilence.dev.androidphotobackup.DropBoxWrapper.java
com.brightsilence.dev.androidphotobackup.PhotoBackupAlarmReceiver.java
com.brightsilence.dev.androidphotobackup.PhotoBackupServiceStarter.java
com.brightsilence.dev.androidphotobackup.PhotoBackupService.java
com.brightsilence.dev.androidphotobackup.PhotoBackupSettingsActivity.java
com.brightsilence.dev.androidphotobackup.TimePreference.java
com.brightsilence.dev.androidphotobackup.ZipInputStream.java