I do app restart with the following intent:
Intent restartIntent = new Intent(context, MainActivity.class);
restartIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
restartIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(restartIntent);
But there is "white" screen while restarting.
I want to display custom screen instead, while restarting app.
Do you know how to achieve this?