Hi
I´m currently using AsyncTask to show a progressdialog while performing a background operation in android.
When AsyncTask is finished, I want to use the result and then call a gui-control-method, but I dont want to call the gui-method in Asynctask (not in onPostExceute) because I want to seperate the model from view.
I want to have a controller-class-method like this:
Can this be done?
I´m currently using AsyncTask to show a progressdialog while performing a background operation in android.
When AsyncTask is finished, I want to use the result and then call a gui-control-method, but I dont want to call the gui-method in Asynctask (not in onPostExceute) because I want to seperate the model from view.
I want to have a controller-class-method like this:
Code:
public void load(String input) { model.getAvailableAddressList(input); --> calling AsyncTask if (model.gotListSuccessfully()) view.set(model.getList()) }
Can this be done?
Comment