1.5.12

How to make Splash Screen Activity not Show again When back Button Pressed

When we make an activity for splash screen, we want the splash screen show only once when the app launched. But sometime after the splash screen end, we still can show the splash screen by pressing the back button, it means we can see the splash screen even the app main menu appears.
So, How to make Splash Screen Activity not Show again When back Button Pressed?
It's so simple, only need to give a line of code in android mainfest.xml under the activity tagline.
For example, we need to make splash screen activity only show once and not show again when back button pressed, the code just like below:

android:noHistory="true"
And it'll be look like this:


btw, sorry for my bad english. 
Share:

0 comments :

Post a Comment

Mari komentar dan berdiskusi...