Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of instantiating custom asynchronous task to make network calls
public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
//Instantiate Async task
MyAsync myTask = new MyAsync(this);
//Run the task in an asynchronous way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.