How can you programmatically close all activities except the main one?
That's right.
Intent intent = new Intent(getApplicationContext(), HomeActivity.class); ComponentName cn = intent.getComponent(); Intent mainIntent = IntentCompat.makeRestartActivityTask(cn); startActivity(mainIntent);
Source: https://ru.stackoverflow.com/questions/668736/More articles:The form goes beyond the screenMaximum SDK VersionWhy does the FIO input line skip? [duplicate]Why on Linux on one kernel idle time is more uptime?The if function does not work correctly when the prompt method is [closed]How to redirect to another page in html?Problem in Android SDK Studio after redoing in apkHow to check correctly that one of the fields is filled?how to change username ubuntu?Connect a custom ASP.NET MVC fontAll Articles