I want to restart my app from internal activity and I saw here that I should this code:
Intent i = getBaseContext().getPackageManager()
.getLaunchIntentForPackage( getBaseContext().getPackageName() );
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
The problem is when I use FLAG_ACTIVITY_CLEAR_TOP flag the app exits and doesn't restart. Any suggestions?