Android: Using WebView outside an Activity context

前端 未结 10 2125
执念已碎
执念已碎 2020-11-27 03:20

I am trying to achieve Web Scraping through a background IntentService that periodically scrape a website without a view displaying on the users phone.

  • Since
10条回答
  •  情书的邮戳
    2020-11-27 03:56

    Why don't you create a Backend Service that does the scraping for you?

    And then you just poll results from a RESTful Webservice or even use a messaging middleware (e.g. ZeroMQ).

    Maybe more elegant if it fits your use case: let the Scraping Service send your App Push Messages via GCM :)

提交回复
热议问题