Hi all,
Upon the selection of a menu item from the menu, I wrote some code
to open a dialog using onCreateDialog of the activity. Each time a
dialog is opened, new data downloaded has to be shown on dialog, which
is pausing the application for 2 to 3 seconds. And the menu item
becomes unresponsive.
I tried using AsyncTask, but because of the following code, in
onCreateDialog,
protected Dialog onCreateDialog(int id) {
Dialog dialog = null;
switch (id) {
case DIALOG_WITH_DOWNLOADED_DATA:
DataDialog dataDialog = new DataDialog(this);
dialog = dataDialog.getDialog();
break;
}
}
Even though, I extend AsyncTask to DataDialog class, I am not able to
return data because, onPostExecute() method returns void.
Please help.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en