Skip to content

Instantly share code, notes, and snippets.

@jwhitehorn
Created March 29, 2013 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwhitehorn/5273652 to your computer and use it in GitHub Desktop.
Save jwhitehorn/5273652 to your computer and use it in GitHub Desktop.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
AsyncTask<Object, Void, Object> worker = new AsyncTask<Object, Void, Object>(){
@Override
protected Object doInBackground(Object... args) {
//do something
return something;
}
protected void onPostExecute(Object result) {
//update the UI.... somehow?
}
};
worker.execute(new Object[]{argument});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment