public class LoadJSONTask extends android.os.AsyncTask<java.lang.String,java.lang.Void,MedicineResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
LoadJSONTask.Listener |
| Constructor and Description |
|---|
LoadJSONTask(LoadJSONTask.Listener listener,
MedicineListActivity activity) |
| Modifier and Type | Method and Description |
|---|---|
protected MedicineResponse |
doInBackground(java.lang.String... strings)
Convert the response to the format required for the calling classes
|
protected void |
onPostExecute(MedicineResponse response)
Dismiss the dialog and load up the list, or inform the user if there is an error
|
protected void |
onPreExecute()
Show a progress dialog while the page loads
|
public LoadJSONTask(LoadJSONTask.Listener listener, MedicineListActivity activity)
protected void onPreExecute()
onPreExecute in class android.os.AsyncTask<java.lang.String,java.lang.Void,MedicineResponse>protected MedicineResponse doInBackground(java.lang.String... strings)
doInBackground in class android.os.AsyncTask<java.lang.String,java.lang.Void,MedicineResponse>MedicineResponseprotected void onPostExecute(MedicineResponse response)
onPostExecute in class android.os.AsyncTask<java.lang.String,java.lang.Void,MedicineResponse>