Problem resolved. The reason for the error is that network time-consuming operations cannot be performed in the main thread. The previous doPost() was executed in handler.post(new Runnble(){});. In fact, the UI thread performed the operation, so it reported an error and exited
Problem resolved. The reason for the error is that network time-consuming operations cannot be performed in the main thread. The previous doPost() was executed in handler.post(new Runnble(){});. In fact, the UI thread performed the operation, so it reported an error and exited
Is there any detailed error report?
Did you not give INTERNET permission? What is the error message in Logcat?