Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

currently i created a webservice that returning a string in json format. so i want to call this string to my android application and want to display in gridview.how to dot it?plz help me.

this is my output of webservice

XML
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="EmployeeDetails">[{"FirstName":"Allen","LastName":"Mclleum","Age":"32","Designation":"Software Enginner","State":"Washigton"},{"FirstName":"Joe","LastName":"Josh","Age":"19","Designation":"Junior Programmer","State":"Kerala"},{"FirstName":"Vikas","LastName":"Rai","Age":"27","Designation":"Designer","State":"Delhi"},{"FirstName":"Silpa","LastName":"Sharma","Age":"27","Designation":"HR","State":"Mumbai"}]</string>


I have the JsonArray with values. i want to display that values in gridview. for that how to set header and display proper values under header
Posted
Updated 9-Jun-13 23:48pm
v4

It may not be appropriate to display everything within a grid on a phone device.
The screen size would be too small to show a grid.

However, here[^] is an example of using a grid view in an android device.
 
Share this answer
 
Comments
josh-jw 10-Jun-13 5:48am    
I have the JsonArray with values. i want to display that values in gridview. for that how to set header and display proper values under header
I displayed the response from webservice in listview usiing adapter.
 
Share this answer
 

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