Skip to content

Instantly share code, notes, and snippets.

@dmsherazi
Created January 14, 2015 14:45
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 dmsherazi/053719ac51a831b8b404 to your computer and use it in GitHub Desktop.
Save dmsherazi/053719ac51a831b8b404 to your computer and use it in GitHub Desktop.
public class BootUpReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
Intent i = new Intent(context, MyActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment