I am having small issues with AsyncTask.
I implemented it as follows
private class MakeConnection extends AsyncTask<String, Void, String> implements OnDismissListener{ Context context; ProgressDialog myDialog; public MakeConnection(Context conetext) { this.context = conetext; myDialog = new ProgressDialog(this.context); myDialog.setCancelable(true); myDialog.setOnDismissListener(this); } @Override protected String doInBackground(String... urls) {
But when I press the back button, nothing happens, it just finishes the task, as if I did not press the back button
Any idea why?
source share