Unfortunately has stopped

后端 未结 4 588
渐次进展
渐次进展 2021-01-27 08:20

I have an app where the user submits some data in a form which is then sent to a server. I am testing it on a tablet and an Android smartphone (Galaxy S2). On the tablet, as soo

4条回答
  •  清酒与你
    2021-01-27 08:49

    You're doing your network operations from the main thread, which is a very very bad idea. You should at least do this inside an AsyncTask.

提交回复
热议问题