While this will work:
new Thread(new Classimplementingrunnable(stuff, dostuff()).start();
This will not:
new Thread(){
public void run(){
Log.i("tag", "I am inside thread");
dostuff();
}
};
No error occurs, it will just ignore it and it wont start a seperate thread, so “I am inside thread” will not show.
You need to call the
start()method on your Thread inorder to make it run.