Android Splash screen: No history when back key is pressed
Splash screens are generally used to show the loading screen of an application or it generally contains the Name of an application. Keeping the Splash screen in history stack of android and displaying it if user keeps on pressing back button until the stack reaches Splash screen is not a good practise.
To prevent Splash screen from appearing in the history stack we can use ‘android:noHistory’ tag in AndroidManifest.xml of our application.
Add something like this in your AndroidManifest.xml file of your application :
<activity android:name=”.yourActivityNameGoesHere” android:noHistory=”true” ></activity>