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
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