Call Soap Service From Android With Ksoap Error
I have a webservice running on Google app engine, and i would to call a available service from an android device. I've follow and merge code of most tutorial about KSoap2, but i st
Solution 1:
Try it..
Try using the below code inside your mainactivityactivity below setContentView()
to avoid networkOnmainThread exception..
if (android.os.Build.VERSION.SDK_INT > 9) {
StrictMode.ThreadPolicypolicy=newStrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
}
But, doing heavy operation inside background thread using AsyncTask without blocking main thread would be great!
And also refer this link...
Post a Comment for "Call Soap Service From Android With Ksoap Error"