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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -