Restart an android application programmatically

Intent i = getBaseContext().getPackageManager()
             .getLaunchIntentForPackage( getBaseContext().getPackageName() );
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);

References

https://stackoverflow.com/questions/15564614/how-to-restart-an-android-application-programmatically

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.