title: JavaScript Interface to a Browser not working in 4.2.2
body: <p>I had tested my javascript interface working perfectly in android 2.3,4.0,4.1 devices
  but not working in galaxy S4 which is 4.2.2
  i tried calling my native interface from index.html
  onload but it says object undefined. </p>
  
  <p>i am calling this function from browser</p>
  
  <pre><code>window.onload = function() {
    window.jsinterface.getSomeString("testing from index.html");
  }
  </code></pre>
  
  <p>this line of code in my activity for recieving data </p>
  
  <pre><code>final class JavaScriptInterface {
      JavaScriptInterface() {}
  
      public void getSomeString(String data) {
          Log.d("yahoo", "DAta" + data);
          Toast.makeText(Testing.this, "getsomestring:"+data, Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>
  
  <p>any suggestion for sending data from browser except this method would also be helpful for me.
  or guide me what to do.</p>