Skip to content

Instantly share code, notes, and snippets.

@noln
Last active June 16, 2020 11:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noln/4853bfe0908f87dee41f to your computer and use it in GitHub Desktop.
Save noln/4853bfe0908f87dee41f to your computer and use it in GitHub Desktop.
A basic anonymous AsyncTask with void return and no pre/post method.
new AsyncTask<Integer, Void, Void>(){
@Override
protected Void doInBackground(Integer... params) {
// main logic
return null;
}
}.execute(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment