Skip to content

Instantly share code, notes, and snippets.

@9re
Created April 4, 2013 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9re/5309301 to your computer and use it in GitHub Desktop.
Save 9re/5309301 to your computer and use it in GitHub Desktop.
BOOT_COMPLETE
...
<receiver android:name=".BootStrap" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
...
package com.example;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
public class BootStrap extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
//
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment