Skip to content

Instantly share code, notes, and snippets.

@hboregio
Created January 2, 2014 21:51
Show Gist options
  • Save hboregio/8227636 to your computer and use it in GitHub Desktop.
Save hboregio/8227636 to your computer and use it in GitHub Desktop.
public class MiAsyncTask extends AsycTask<Void, Void, Void> {
private Callback mCallback;
public MiAsyncTask(Callback aCallback) {
mCallback = aCallback;
}
protected Void doInBackground(Void... params) {
// hacemos nuestras operaciones aca
}
protected void onPostExecute(Void result) {
mCallback.finished();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment