Created
January 14, 2015 14:45
-
-
Save dmsherazi/053719ac51a831b8b404 to your computer and use it in GitHub Desktop.
make your android app boot at device start-up http://dostmuhammad.com/blog/make-your-android-app-boot-at-device-start-up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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