Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hai. Am New To Android i want the return dataset in xml format from webservice to android gridview.. Here am using webservice in asp.net, and i want that webservice response to bind in android gridview.. please anyone help me..please help me by giving sample application
Posted
Updated 27-Mar-14 21:02pm
v4

hi,
you need to return String<list> and then bind to gridview.
 
Share this answer
 
Comments
Member 10556609 28-Mar-14 5:32am    
Thanks for reply ..if we return string means we want to use one value know? Am returned dataset value from asp.net this ia my webservice returned dataset..


- <dataset xmlns="http://tempuri.org/">
- <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:isdataset="true" msdata:usecurrentlocale="true">
- <xs:complextype>
- <xs:choice minoccurs="0" maxoccurs="unbounded">
- <xs:element name="Table">
- <xs:complextype>
- <xs:sequence>
<xs:element name="Id" type="xs:string" minoccurs="0">
<xs:element name="Status" type="xs:string" minoccurs="0">
<xs:element name="DateTime" type="xs:dateTime" minoccurs="0">







- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <newdataset xmlns="">
- <Table diffgr:id="Table1" msdata:rowOrder="0">
<id>1
<status>Pickup
<datetime>2014-03-25T00:00:00+05:30
</Table>
- <Table diffgr:id="Table2" msdata:rowOrder="1">
<id>2
<status>InTransit
<datetime>2014-03-25T00:00:00+05:30
</Table>
- <Table diffgr:id="Table3" msdata:rowOrder="2">
<id>3
<status>ReachedBLR
<datetime>2014-03-25T00:00:00+05:30
</Table>
- <Table diffgr:id="Table4" msdata:rowOrder="3">
<id>4
<status>StartedDEL
<datetime>2014-03-25T00:00:00+05:30
</Table>
- <Table diffgr:id="Table5" msdata:rowOrder="4">
<id>5
<status>InTransit
<datetime>2014-03-25T00:00:00+05:30
</Table>
- <Table diffgr:id="Table6" msdata:rowOrder="5">
<id>6
<status>ReachedDEL
<datetime>2014-03-25T00:00:00+05:30
</Table>






please help me to bind that dataset in android gridview..
simple solution:
From web-service you need to return JSON and bind to table
like:
Java
tableRow.addView(text);
tableRow.addView(button);
tableLayoutObject.addView(tebleRow);

also check following link:
http://www.heikkitoivonen.net/blog/2009/02/15/multicolumn-listview-in-android/[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900