Android Splash Activity removed from history

Sunday, November 20, 2011 10:33 AM | Leave a reply »

I usually have a splash activity either to load and prepare variables for execution or just to check for latest updates to the application and its data.

I just don’t want the users to be able to click back on their mobiles and go back to that splash activity

I looked at a lot of internet posts but this is the simplest

I have added the noHistory Attribute to the splash activity in the manifest file

   1: <activity
   2:     ...
   3:     android:noHistory="true">
   4:     <intent-filter >
   5:         ...
   6:     </intent-filter>
   7: </activity>
   8:   


Comments

No comments posted yet.

Leave a Reply



 

Please add 3 and 4 and type the answer here: