Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8088439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:05:24+00:00 2026-06-05T19:05:24+00:00

I use WebView + addJavascriptInterface to control my app from html page shown in

  • 0

I use WebView + addJavascriptInterface to control my app from html page shown in a WebView control.
It works fine on some API versions, but for example on API 10 in emulator it behaves wrong, crashes are seen in WebViewCoreThread. Also reported by users on some real devices.

My html looks like this:

<html>
<head>
<script type="text/javascript">
function hideId(id){
   callback.hide(id);
}
</script>
</head>
<body>
  <input type="button" value="Hide" onclick="hideId('1');">
</body>
</html>

This shows a Hide button, which should call back my Java code, which looks like this:

private class JS{
   public void hide(String id){
      ... some code
   }
}

WebView wv = ...
wv.addJavascriptInterface(new JS(), "callback");
wv.loadURL(...);

It works fine on some devices, but on mentioned API10 emulator, after pressing the button in html, logcat shows error, and entire WebView becomes ill, no more controls react to touches, and my JS.hide function is not called.

W/dalvikvm(1790): JNI WARNING: jarray 0xb6e1bfd0 points to non-array object (Ljava/lang/String;)
I/dalvikvm(1790): "WebViewCoreThread" prio=5 tid=10 NATIVE
I/dalvikvm(1790):   | group="main" sCount=0 dsCount=0 obj=0xb6e4f8a0 self=0x8a9c568
I/dalvikvm(1790):   | sysTid=1800 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=145332280
I/dalvikvm(1790):   at android.webkit.WebViewCore.nativeTouchUp(Native Method)
I/dalvikvm(1790):   at android.webkit.WebViewCore.nativeTouchUp(Native Method)
I/dalvikvm(1790):   at android.webkit.WebViewCore.access$3300(WebViewCore.java:53)
I/dalvikvm(1790):   at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1158)
I/dalvikvm(1790):   at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm(1790):   at android.os.Looper.loop(Looper.java:130)
I/dalvikvm(1790):   at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)
I/dalvikvm(1790):   at java.lang.Thread.run(Thread.java:1019)
E/dalvikvm(1790): VM aborting

Any idea what is wrong with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:05:25+00:00Added an answer on June 5, 2026 at 7:05 pm

    I just came across this problem myself as well and I found that this is a known issue for android 2.3.
    http://code.google.com/p/android/issues/detail?id=12987

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I make call from my app with this code (i use webview because after
hello i'm using this example http://lexandera.com/2009/01/extracting-html-from-a-webview/ to get the HTML from a webview. But
I use a WebView to display some internet content on one of our app's
I'm trying to use a Webview for a Google TV app. The problem I
My app uses a WebView widget to load ads from Google AdManager. AdManager gives
For some reasons I have to use WebView in my Android application and part
I am creating an app where i use a WebView this is how the
So I have this app and I am convinced they use a WebView to
I am developing a web app in Android, and I use a WebView to
all, I am developing a app forum client, I use the webview as each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.