I have a web service in c#.net and on my android form I need to pull data from this service and populate a gridview on android form. How can I do it?
Thank you,
Alina
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
decide on a standard way for communication between the device and your server .
then , get the list of the items and update the gridview according to its size , inflating all of the needed views with empty data . for each view , create and run an asyncTask that will query the server about more data about the item (like images,for example) and for both the onPostExecute and onPreExecute , check that the item matches the view , so that you will update the correct view.
also consider adding caching mechanism for each data that you received , to improve responsiveness and smoothness.
please watch this video for more info. it’s about listView , but the same tips hold for gridView and all classes that extend AdapterView .