title: How can I add WebView into a Widget?
body: <p>I'm trying to make a recording Widget where the user interface would be loaded from HTML page in WebView. Is this possible? I've been trying to load url into Widget but I get all sorts of errors and my program crashes. I'm new to Android development and don't really know how this stuff works yet. </p>
  
  <p>This is my Widget provider class:</p>
  
  <pre><code>public class RecordAppWidgetProvider extends AppWidgetProvider {
  WebView webview;
  @Override
  public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
      webview.getSettings().setJavaScriptEnabled(true);
      webview.loadUrl("http://www.google.com");
      webview.setWebViewClient(new WebViewClient());
  
  }
  }
  </code></pre>
  
  <p>I think I'll have to load the WebView in some way, normally I do it with this:</p>
  
  <pre><code>webview = (WebView) findViewById(R.id.webview);
  </code></pre>
  
  <p>But it doesn't work here, I think findViewById is from Activity?</p>