Here's the prototype of my code:-
class something extends Activity
{
protected void onCreate(Bundle savedInstanceState)
{
String str = objectofanotherthing.execute("").get();
}
class anotherthing extends AsyncTask
{
ProgressDialog Dialog;
protected void onPreExecute()
{
Dialog = ProgressDialog.show(context, "Progressing", "Working on it,");
}
protected String doInBackground(String... params)
{
...
}
protected void onPostExecute(Integer result)
{
Dialog.dismiss();
}
}
}
When I execute my code, my program seems to stop at ProgressDialog.show, no crashes no errors. When I commented this part, the program executes fine. I'm not sure what can be done. Can anyone help me with this. Thanks in advance.