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