I want my application to show a presentation page for 2 seconds for instance when the user click on it.
So far I made an other activity with a frameLayout which has an Image. I load this activity, I try to make it sleep for 2 seconds, then I send an intent to the main activity.
It doesn’t work very well, it doesn’t feed the first activity with the background image if I do the Thread.sleep() thing.
My question is : how do I perform to do that properly, because I think I’m on the wrong path.
Thanks for reading.
EDIT SOLUTION : I solved this just by using the handler thing in my presentation activity, in where I launch the main activity after 2 seconds. Thanks guys.
Instead of
Thread.Sleep, in youronStartdo this: