I am calling an asynctask from the main thread of my Android application. However, I need to pause the main thread till the time the async task is over. Can someone suggest how to do this?
Edit : I need to use an AsyncTask, as I can not perform network requests on the main thread