android - stay a few second on interface and switch automatically to an other interface -


i have interface a.xml , java file a.java , b.java , 2 activity.

i want interface b.xml (contains image)

when opening application want interface b.xml opens , stays 3 seconds , automatically switch interface a.xml

how can it?

thank in advance

you can use these code:

handler handler = new handler(); handler.postdelayed(new runnable() {     public void run() {         intent intent = new intent(activitya.this, activityb.class);         startactivity(intent);     } }, 3000); 

additional links:


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -