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: