HttpClient.execute(HttpPost) on Android 4.2 error

前端 未结 2 1881
生来不讨喜
生来不讨喜 2020-12-10 00:02

I am following this website http://givemepass.blogspot.hk/2011/12/http-server.html to try to use the android application connect the PHP server to get message.

GetS

2条回答
  •  忘掉有多难
    2020-12-10 00:32

    You need to run long running tasks, like network, calls on a separate Thread as Sotirios Delimanolis said. AsyncTask is probably the way to go.

提交回复
热议问题