Created
November 24, 2014 09:37
-
-
Save creativepsyco/55e9cee6d84831ef3f89 to your computer and use it in GitHub Desktop.
How to launch a restart intent.
This file contains 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 intent = new Intent(getActivity(), HomeActivity.class); | |
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |
finishActivity(); | |
getActivity().startActivity(intent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment