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 6975753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:24:33+00:00 2026-05-27T17:24:33+00:00

I have a hybrid application in Android which involves native functions as well :

  • 0

I have a hybrid application in Android which involves native functions as well :

HTML 5 with javascript :

<html>
    <head>
        <script src="jquery-1.5.1.min.js"></script>
        <script src="menus.js"></script>
        <script src="jquery-ui-1.8.10.custom.min.js"></script>
        <script type="text/javascript">
        function openCamera1(){
            camera.startCameraActivity1();
            var path1=camera.getImagePath1();
            alert(path1);
            document.getElementById("image1").src=path1;
        }
        function openCamera2(){
            camera.startCameraActivity2();
            var path2=camera.getImagePath2();
            alert(path2);
            document.getElementById("image2").src=path2;
        }
        function show_confirm()   {
            var r=confirm("Do you wish to use the existing Details?");
            if (r==true)
            {
                alert("You pressed OK!"); 
            }   else     {
                alert("You pressed Cancel!");
            }
        }     

in html :

&lt;input type="button" onclick="show_confirm()" value="Register Cliam" /&gt;

in java : (android native):

public String getDetails(){  
    System.out.println("iiiiiiiiiiiiiiii");  
    String a=dh.hello();  
    System.out.println("aaaaaaaaaaaa " + a);
    return a;
}  

Data helper class :

public String hello(){  
    return "Hello";  
}  

And Exception i am facing :

    12-19 09:19:57.894: WARN/dalvikvm(718): JNI WARNING: JNI method called with exception raised  
    12-19 09:19:57.894: WARN/dalvikvm(718): in Landroid/webkit/WebViewCore;.nativeTouchUp (IIIII)V (NewGlobalRef)  
    12-19 09:19:57.894: WARN/dalvikvm(718): Pending exception is:  
    12-19 09:19:57.894: INFO/dalvikvm(718): Ljava/lang/NullPointerException;:  
    12-19 09:19:57.894: INFO/dalvikvm(718): at com.test.hybrid.aviva.OpenCamera.getDetails(OpenCamera.java:179)  
    12-19 09:19:57.894: INFO/dalvikvm(718):     at android.webkit.WebViewCore.nativeTouchUp(Native Method)  
    12-19 09:19:57.894: INFO/dalvikvm(718):     at android.webkit.WebViewCore.access$3400(WebViewCore.java:48)  
    12-19 09:19:57.905: INFO/dalvikvm(718):     at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1094)  
    12-19 09:19:57.925: INFO/dalvikvm(718):     at android.os.Handler.dispatchMessage(Handler.java:99)  
    12-19 09:19:57.925: INFO/dalvikvm(718):     at android.os.Looper.loop(Looper.java:123)  
    12-19 09:19:57.925: INFO/dalvikvm(718):     at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:611)  
    12-19 09:19:57.925: INFO/dalvikvm(718):     at java.lang.Thread.run(Thread.java:1096)  
    12-19 09:19:57.925: INFO/dalvikvm(718): "WebViewCoreThread" prio=5 tid=15 NATIVE  
    12-19 09:19:57.934: INFO/dalvikvm(718):   | group="main" sCount=0 dsCount=0 s=N obj=0x44c13848 self=0x139858  
    12-19 09:19:57.934: INFO/dalvikvm(718):   | sysTid=725 nice=0 sched=0/0 cgrp=default handle=1284464  
    12-19 09:19:57.934: INFO/dalvikvm(718):   at android.webkit.WebViewCore.nativeTouchUp(Native Method)  
    12-19 09:19:57.934: INFO/dalvikvm(718):   at android.webkit.WebViewCore.nativeTouchUp(Native Method)
    12-19 09:19:57.934: INFO/dalvikvm(718):   at android.webkit.WebViewCore.access$3400(WebViewCore.java:48)  
    12-19 09:19:57.934: INFO/dalvikvm(718):   at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1094)
    12-19 09:19:57.934: INFO/dalvikvm(718):   at android.os.Handler.dispatchMessage(Handler.java:99)  
    12-19 09:19:57.934: INFO/dalvikvm(718):   at android.os.Looper.loop(Looper.java:123)  
    12-19 09:19:57.955: INFO/dalvikvm(718):   at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:611)   
    12-19 09:19:57.955: INFO/dalvikvm(718):   at java.lang.Thread.run(Thread.java:1096)  
    12-19 09:19:57.955: ERROR/dalvikvm(718): VM aborting 
  • 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-05-27T17:24:34+00:00Added an answer on May 27, 2026 at 5:24 pm

    Highly suspect

    String a=dh.hello();
    

    dh is null.

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

Sidebar

Related Questions

I have an Android/HTML hybrid application that has a small number of nested ViewFlippers
I have a hybrid (Objective C + HTML) application and I would like to
Which would be the most recommended python hybrid to create GUI application? I have
I'm writing the HTML for a hybrid (iPhone/Android/Blackberry) mobile application. I'm not directly involved
I'm investigating the feasibility of developing a native (hybrid) app based on HTML/Javascript (using
We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and
i have create a form (so it's PHP and HTML hybrid-code). it has ability
HEllo, I have a hybrid iPhone application that has a UITabBarController and 5 Tabs.
I have a large application that currently exists as a hybrid of WebForms and
I just started make a kind of Android hybrid app, an application with WebView.

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.