Firstly, I know that one should not really kill/restart an application on Android. In my use case, I want to factory-reset my application in a specific case where a server s
Use:
navigateUpTo(new Intent(this, MainActivity.class));
It works starting from API level 16 (4.1), I believe.