Call sleep()
in AsyncTask as currently you are sleeping UI thread and that's not good.
Blueprint for your asynctask should look like:
class YourAsync extends AsyncTask{
onPreExecute(){
// show message here
}
doInBackground(){
// sleep here
}
onPostExecute(){
// remove/reset message (whatever your requirement is )
// loadActivity
}
}