I have an Activity that runs a WebView
and inject some JS into a site (which i don't have control) and returns me some data. I need to do the same thing on background, with a service. How can i do this ?
NOTE: I'm already using an IntentService
, AlarmManager
and BroadcastReceivers
. I only wanna know the better way to implement this service (WebView, Http-Client, others..)
Ps.: I think that if i instantiate a WebView
0Wx0 through service would be dirty. Am i wrong ?
Ps: I read a little about HttpClient, but I do not know if it is useful to me.
Thank you !