title: Android: Using WebView outside an Activity context
body: <p>I am trying to achieve Web Scraping through a background IntentService that periodically scrape a website without a view displaying on the users phone.  </p>
  
  <ul>
  <li>Since I have to do call some javascript on the loaded page I cannot use any HttpGet's etc.</li>
  <li>I therefore have to use a WebView instance which can only run on an UI thread.</li>
  <li>Any attempts to start an Activity that use a WebView results in a View coming into the phones foreground (as per Android's design of Activities)</li>
  <li>Any attempts to use a WebView outside of an Activity context resulted in error pointing to the fact that you cannot use WebView on a non-UI thread.</li>
  <li>For various complexity reasons I cannot consider using libraries such as Rhino for UI-less web scraping.</li>
  </ul>
  
  <p>Is there any way of working around this problem?</p>