Anil M H Anil M H - 1 year ago 72
Android Question

Add the loading screen in starting of the android application

My app is loading the start page in 10 seconds. In that time of 10 sec android screen is blank.
In that time I want to add the loading screen. How to add it?
And tell me in app how to know the starting page is loading? And tell me how to do in my app?

Answer Source

You can use splash screen in your first loading Activity like this:

    public void onCreate(Bundle savedInstanceState) {

        Thread welcomeThread = new Thread() {

            public void run() {
                try {
                    sleep(10000)  //Delay of 10 seconds
                } catch (Exception e) {

                } finally {

                    Intent i = new Intent(SplashActivity.this,

Hope this helps.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download