The name explains all this. I have a class that extends AsyncTask. I call it directly in the main thread using the new class name.execute ().
Now in doInBackground (params) I have Looper.prepare. Since I get the error message โOnly one Looper can be created for each threadโ, I need to use Looper.quit () inside it. But I cannot find it inside the Looper class when I write Looper.quit ();
So how to use this quit function
source share