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

  • Home
  • SEARCH
  • 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 7838453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:06:40+00:00 2026-06-02T15:06:40+00:00

I have a pure NDK application, entirely C++ . I now need to add

  • 0

I have a pure NDK application, entirely C++.

I now need to add access to a WebView; Google search and stack-overflow have informed me that I have to do this in Java.

How do I go about including Java class (derived from WebView) into my pure Android NDK application and how do I invoke it?

Note: I am not using Eclipse or any other IDE, just .mk file etc.

  • 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-02T15:06:42+00:00Added an answer on June 2, 2026 at 3:06 pm

    You would have to use JNI and make an upcall from your C++-code to Java. Calling a Java language method from within native code involves the following three steps:

    1. Retrieve a class reference
    2. Retrieve a method identifier
    3. Call the methods

    There’s a good explaination on how to do this here: Sun JNI Reference

    You need a Java class that can receive this method call, and that can start up an Activity containing a webview. So, you can include and invoke Java from C++, but naturally you still need to implement the Java-class in Java, there’s no getting away from that.

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

Sidebar

Related Questions

I have a pure C++ application developed using VC 6.0. I would like this
I have an application written in pure/basic Java without GUI. I have three classes
Is it possible to have a pure hierarchical wpf data grid? Now there are
I have a pure JAX-RS application both in Glassfish and in jetty-servlet. I'm trying
I have a pure C++/Win32 VS2005 desktop application. During my WM_PAINT response, when I
I have a pure Winapi application that needs a few new features. One of
I have a pure C++/Qt project on a Mac, but I now find that
I have a pure text file without any HTML formatting. I want to search
I have a pure ActionScript 3 project that I build using the open source
I have a pure Actionscript 3 project, using flash.* libraries, compiles down to about

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.