开发者

Load custom data from HTTP web page

I need to read some specific data in an HTML web page, from Android.

I wrote class that build the exact HTTP address. Now I can load the page and parse the data I want, but since bandwidth is expensive on smartphones, I would like to load just some custom data off the HTTP web page, to s开发者_JAVA百科ave memory.

Is this possible? How could I do it?

Cheers guys :)


Your alternatives are

  1. Build a Proxy and host it on your server, which will parse the web page, and return relative data to the smart phones.
  2. Read the response stream and once you get all the data you need stop reading. this is depended on how large the page is and where the relevant text you need is located.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜