Ok, here is my problem. I want to learn AsyncTask, Threading and Handler to process long running tasks. I used Android Cook Book and New Boston Android tutorial, but I can\'
Why are you creating a new Thread just to wait 2 seconds to call AsyncTask? I would suggest you to remove that Thread, normally call the AsyncTask and inside it place Thread.sleep(....).
Something like:
protected void onPreExecute(String f){
Thread.sleep(2000);
//example of setting up something
f = "whatever";
}
PS: in order to run a Thread, you need to call thread.start. ;)