Setting a background image while loading an Android app -


how add background android app @ loading time? shows white page.

public class splashscreen extends activity { /** called when activity first created. */ @override public void oncreate(bundle savedinstancestate) {   super.oncreate(savedinstancestate);   setcontentview(r.layout.splashscreen);   thread splashthread = new thread() {      @override      public void run() {         try {            int waited = 0;            while (waited < 1000) {               sleep(100);               waited += 100;            }         } catch (interruptedexception e) {            // nothing         } {             intent = new intent(splashscreen.this,party_tablayout.class);             startactivity(i);            finish();         }      }   };   splashthread.start();  } } 

hope helps you..:-)


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -