Skip to content Skip to sidebar Skip to footer

Android Web Service Access

I have accessed a web service from Android 2.2.It is perfectly OK.I changed my program for Android 4.0.3 to access same web service.But this doesn't work. Code of my Android progra

Solution 1:

It looks like you never started the networkThread. You would need this at the very end of your onCreate():

networkThread.start();

That being said, you would do well to use AsyncTask to do this type of thing. I think you will find it much easier once you get the hang of it.

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

Post a Comment for "Android Web Service Access"