|
|
|
@ -170,6 +170,7 @@ public class MicroPhotoService extends Service {
|
|
|
|
|
mAlarmReceiver = new AlarmReceiver(this);
|
|
|
|
|
IntentFilter intentFilter = new IntentFilter(ACTION_HEARTBEAT);
|
|
|
|
|
intentFilter.addAction(ACTION_TAKE_PHOTO);
|
|
|
|
|
intentFilter.addAction(ACTION_UPDATE_CONFIGS);
|
|
|
|
|
// intentFilter.addAction(ACTION_TAKE_PHOTO_MANUALLY);
|
|
|
|
|
// intentFilter.addAction(ACTION_HEARTBEAT_MANUALLY);
|
|
|
|
|
// intentFilter.addAction(ACTION_MSG_BROADCAST);
|
|
|
|
@ -407,7 +408,7 @@ public class MicroPhotoService extends Service {
|
|
|
|
|
}
|
|
|
|
|
} else if (TextUtils.equals(ACTION_UPDATE_CONFIGS, action)) {
|
|
|
|
|
int restart = intent.getIntExtra("restart", 0);
|
|
|
|
|
Log.i(TAG, "UPD CFG Fired ACTION=" + action + " restart" + restart);
|
|
|
|
|
Log.i(TAG, "UPD CFG Fired ACTION=" + action + " restart=" + restart);
|
|
|
|
|
if (restart != 0) {
|
|
|
|
|
MicroPhotoService.restartApp(context, context.getPackageName());
|
|
|
|
|
} else if (mService.mNativeHandle != 0) {
|
|
|
|
|