Android splash Activity does not implement or extend Thread Class -


the splash screen activity works on thread class not extend or implement thread. how thread work inside activity?

why activity not extends thread class.you can implements runnable in activity:

public class androidrunnable extends activity implements runnable{  thread mythread;     /** called when activity first created. */   @override   public void oncreate(bundle savedinstancestate) {       super.oncreate(savedinstancestate);       setcontentview(r.layout.main);   }    @override protected void onresume() { // todo auto-generated method stub super.onresume(); }  @override protected void onpause() { // todo auto-generated method stub super.onpause(); }  @override public void run() { // todo auto-generated method stub  }   } 

see example creating splashing screen activity using thread:

android tutorial: how make basic splash screen


Comments

Popular posts from this blog

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

python - Obscure curses error message when creating a sub window -