1.4 modern child centered education - mahatma gandhi-2.pptx
Android application (how to add a splash screen with timer) tutorial #4
1. Android Application Tutorial
How to add a splash screen with a timer
Instructed on: 02-Mar-2012 | Tutorial: #06
6
By : Yasmine Sherif Mahmoud
Tutorial Code: APS-06-2012
All Copy Rights Saved to the 7th Students’ Conference on Communication and Information Based in the Faculty of Computers
and Information Cairo University – Egypt 2011/2012 www.scci-cu.com
2. • We will continue on our last project to add a
splash screen with a timer to it.
• A splash screen is the first screen you see
when you open the application.
• It disappears after an interval of time.
• Open your last project and follow these steps:
3. I added the new picture that I want to use as a splash screen in
my drawable file.
You can add a new picture as we have learned before in the
previous tutorials.
4. Here is the new picture.
Do not forget to clean your project so
you can be able to see the picture.
12. • We are now accessing the Splash screen.xml
but we can’t access the main.xml file anymore
so we will have to create another .java file to
access the main.xml file again at the same
time of accessing the splash screen.xml file.
• Steps:
47. It’s a while loop that
operates the timer
Write this line after the while loop but inside the try
body.
Copy your package name.CLEARSCREEN
in the brackets after Intent(“ ”)
48. You will have in error in the word Intent
which can be fixed by using this: