Home  >  Q&A  >  body text

android HttpClient无法POST数据?

天蓬老师天蓬老师2765 days ago551

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:45:51

    Is there any detailed error report?

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:45:51

    Did you not give INTERNET permission? What is the error message in Logcat?

    reply
    0
  • Cancelreply