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
Post a Comment