Wrote a post request processing class via AsyncTask and accept the response from the server. How to pause the main thread to wait for AsyncTask to complete? When I call the Thread.currentThread.wait (int) method, I get the exception "InvocationTargetException"
It is necessary to make it so that the activity can process the result obtained from AsyncTask, and not be performed ahead of its completion.