巴扎黑2017-04-17 13:45:51
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
PHP中文网2017-04-17 13:45:51
Did you not give INTERNET permission? What is the error message in Logcat?