Android & Wordpress Help center

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>


Single Post Navigation

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: