开发者

Android way to download and immidiately show data

开发者 https://www.devze.com 2023-03-08 05:08 出处:网络
Imagine that you 开发者_JAVA百科have data on the server. You should download some XML, parse it and show in activity without saving this data into database.

Imagine that you 开发者_JAVA百科have data on the server. You should download some XML, parse it and show in activity without saving this data into database.

Which way of async operations you will use to download data and how you will pass it to activity?


When you download ascii files they are read in to a string (http://www.helloandroid.com/tutorials/how-download-fileimage-url-your-device) which can then be parsed (http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html). This method never saves data to external storage. It would only exist in RAM.

0

精彩评论

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