Parsing html in java for an android app

前端 未结 3 893
滥情空心
滥情空心 2020-12-10 23:42

I\'m writing an android app that takes relevant data from a website and presents it to the user (html scraping). The application downloads the source code and parses it, loo

3条回答
  •  天涯浪人
    2020-12-11 00:02

    I would say it's probably a bad idea to parse HTML on the device if you're experiencing performance issues. Have you considered creating a web app that your device app fetches data from?

    If the data is from one source (i.e.; one webpage and not many) I would build a web app to prefetch the site, parse for relevant data, and cache it for later use on the device(s).

提交回复
热议问题