I have used a View
Class as a Splash screen with some custom animations
.
The splash class is working fine, it goes to next activity
successfully but when i click back button, the splash screen is returning. There is no onPause
method for View
class? Anybody please help.
Asked
Active
Viewed 77 times
-1

venciallee
- 775
- 4
- 19

Darshan Gowda
- 4,956
- 3
- 19
- 27
2 Answers
3
You probably want to add the noHistory
attribute to the manifest file.
Add:
android:noHistory="true"
To the attributes of the splash screen activity to prevent it being returned to.

Estel
- 2,154
- 2
- 18
- 25
1
You need to call finish() on your activity when you are done with it. It should put it out of the activity stack.

Francois Morier-Genoud
- 649
- 6
- 19