Posts

Showing posts with the label Count Down Timer

Splash Screen(Using Count Down Timer)

Image
This example will show you how can you add a splash screen to your android application. There are many ways to do that like using a handler or a timer. In our example, we going to use a count down timer. Count-down is used when you have to perform some job based on some time and with specific intervals. The coun-down timer takes two arguments first the is specifying how long the job is being executed and the second one is for the interval. When you create the object of count-down time we have to override some method. The first method is onTick and the other is  onFinish. 1) onTick - Execute every time on the mentioned interval. 2) onFinish- Executes when the timer job is finished. Let create and an example with it:- Steps:- 1) Create one layout file and add the image you want to show. 2) Create one new java file. 3) Create a count down timer object to hold the image for some time and then navigate the user to the main activity. 4) Register the java file to ...