开发者

Android https timeout

开发者 https://www.devze.com 2023-03-06 14:25 出处:网络
I am getting huge data f开发者_Python百科rom a database and I have to display the data in a table form. Please provide me a way to get the data from the web service and display it in a table.You shoul

I am getting huge data f开发者_Python百科rom a database and I have to display the data in a table form. Please provide me a way to get the data from the web service and display it in a table.


You should get data from web and parse it then put all the data on map/list/arrays then create custom list according to your need then put this data structure in listview.


Your best bet is to actually use HTTP client or url connection with a buffer for reading to get the data (search on google for tutorials and examples). also be sure to set a larger timeout because you will be pulling a lot of data. then depending on the format of your data start parsing it, maybe store it in a database, Arraylist or something like that and then make a list with an adapter to show the data.

Url connection

hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消