Skip to content

Instantly share code, notes, and snippets.

@adavis
Created June 8, 2015 19:44
Show Gist options
  • Save adavis/26b7673536a4f6832eb7 to your computer and use it in GitHub Desktop.
Save adavis/26b7673536a4f6832eb7 to your computer and use it in GitHub Desktop.
A simple live template for Android Studio that surrounds the current selection with an Async Task.
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
$SELECTION$
return null;
}
@Override
protected void onPostExecute(Void result) {
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment