Unfortunately has stopped

后端 未结 4 595
渐次进展
渐次进展 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:58

    This issue is happening that you are not using the painless thread. That all the android os versions which is higher than 3.0 wont support any king of internet accessing works (http connections ) in the oncreate.. So that you are supposed to use ASYNCTask . please have a look at this link to know about this .

    http://samir-mangroliya.blogspot.in/p/android-asynctask-example.html

    http://developer.android.com/reference/android/os/AsyncTask.html

提交回复
热议问题