27 lines
726 B
Java
Executable File
27 lines
726 B
Java
Executable File
package com.blogspot.applications4android.comicreader;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.util.Log;
|
|
|
|
|
|
/**
|
|
* Receives the sync-now request and starts a fully-awake intent service
|
|
*/
|
|
public class SyncNowReciever extends BroadcastReceiver {
|
|
/** for logging purposes only */
|
|
private static final String TAG = "SyncNowReceiver";
|
|
|
|
|
|
@Override
|
|
public void onReceive(Context arg0, Intent arg1) {
|
|
Log.d(TAG, "SyncNowReceiver has started...");
|
|
BackgroundCacheIntentService.acquireStaticLock(arg0);
|
|
Intent i = new Intent(arg0, BackgroundCacheIntentService.class);
|
|
arg0.startService(i);
|
|
Log.d(TAG, "SyncNowReceiver has ended...");
|
|
}
|
|
|
|
}
|