title: Android: can't get javascript to work on WebView even with setJavaScriptEnabled(true)
body: <p>I'm a complete noob to Android and this is just a simple test. <a href="http://www.youtube.com/watch_popup?v=uVqp1zcMfbE&amp;vq=hd720#t=68">Based it on this tutorial.</a></p>
  
  <p>Here goes the HelloWebApp.java</p>
  
  <pre><code>package com.company.something;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebView;
  
  public class HelloWebApp extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          WebView webView = (WebView)findViewById(R.id.webView);
          webView.getSettings().setJavaScriptEnabled(true);
          webView.loadUrl("file:///android_asset/www/index.html");
      }
  }
  </code></pre>
  
  <p>And this is from res/layout/main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      &gt;
  &lt;WebView  
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:id="@+id/webView"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Plus this is all I changed on the Manifest:</p>
  
  <pre><code>&lt;activity android:name=".HelloWebApp"
  android:label="@string/app_name"
  android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
  android:screenOrientation="landscape"&gt;
  </code></pre>
  
  <p>As for the javascript, I've tried everything. Complicated, simple, inside the body at the bottom, in a button, on the head. Nothing works. The html works fine.</p>
  
  <p>Thanks in advance for any help.</p>