|
|
@ -26,12 +26,16 @@ import android.content.Intent;
|
|
|
|
public class ReceiverAutoStart extends BroadcastReceiver {
|
|
|
|
public class ReceiverAutoStart extends BroadcastReceiver {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onReceive(final Context context, Intent intent) {
|
|
|
|
public void onReceive(final Context context, Intent intent) {
|
|
|
|
Log.i("Received " + intent);
|
|
|
|
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction()) ||
|
|
|
|
|
|
|
|
Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction())) {
|
|
|
|
|
|
|
|
Log.i("Received " + intent);
|
|
|
|
|
|
|
|
|
|
|
|
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction()))
|
|
|
|
if (Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction()))
|
|
|
|
; // handled by Application
|
|
|
|
ApplicationEx.upgrade(context);
|
|
|
|
|
|
|
|
|
|
|
|
if (Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction()))
|
|
|
|
ServiceSynchronize.boot(context);
|
|
|
|
ApplicationEx.upgrade(context);
|
|
|
|
ServiceSend.boot(context);
|
|
|
|
|
|
|
|
ServiceUI.boot(context);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|