Re: [android-developers] Call web service that returns an object
Thank you for your hint
i got it corrected as follows
SoapObject response = (SoapObject)envelope.bodyIn;
SoapObject c2 = (SoapObject)response.getProperty(0);
tv.setText("Category" + c2.getProperty(0));
On Saturday, July 21, 2012 8:28:53 PM UTC+3, TreKing wrote:
On Sat, Jul 21, 2012 at 3:25 AM, Mohammed Zarqa <mmzarqa@gmail.com> wrote:the returned object is a class (Category) and contains ID as integer, Name and description so what should i do to sync the category class defined in both web service and the android app.
Parse the data you get to retrieve the individual properties of your custom object class, then create an instance of that class and set the properties.
------------------------------------------------------------ ------------------------------ -------
TreKing - Chicago transit tracking app for Android-powered devices
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home