I need a splash screen for my application.
Tried creating an activity having the image for my splash screen; and tried using for loop and the Timer class for introducing a time delay. But it din’t work that way.
Am I doing it wrong; if yes, what is the right way?
I need a splash screen for my application. Tried creating an activity having the
Share
The above solutions are good, but what if the user presses the back-key (and closes your app) before the splash-delay is over.
The app will probably still open the next Activity, which isn’t really user-friendly.
That’s why I work with a custom Handler, and remove any pending messages in onDestroy().