Created
September 9, 2015 02:07
-
-
Save mortenjust/68366642934e6dbeb7c0 to your computer and use it in GitHub Desktop.
Start an activity without back stack and kill current activity
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
Intent i = new Intent(this, WatchFaceActivity.class); | |
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); | |
startActivity(i); | |
finish(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Kotlin: