1 package foo.bar.testback; 2 3 import android.content.BroadcastReceiver; 4 import android.content.Context; 5 import android.content.Intent; 6 import android.os.Debug; 7 import android.util.Log; 8 9 public class IdleMaintenanceReceiver extends BroadcastReceiver { 10 11 private static final String LOG_TAG = IdleMaintenanceReceiver.class.getSimpleName(); 12 13 @Override 14 public void onReceive(Context context, Intent intent) { 15 Debug.waitForDebugger(); 16 Log.i(LOG_TAG, (intent.getAction() != null) ? intent.getAction() : "null"); 17 } 18 } 19