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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:12:51+00:00 2026-05-27T21:12:51+00:00

For PhoneGap Application, as the instruction said, I have replaced the setContentView() line with

  • 0

For PhoneGap Application, as the instruction said, I have replaced the setContentView() line with super.loadUrl("file:///android_asset/www/index.html"); and the next line is appView.addJavascriptInterface( new JavaScriptInterface(this), "Android");

My question is

  1. if I wanna use appView in my JSInterface, how can I find it, or pass it into JSInterface, or reference it from JSInterface.
  2. And is appView the only webview in PhoneGap?
  • 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-27T21:12:52+00:00Added an answer on May 27, 2026 at 9:12 pm

    First you should not take the approach of adding your own JS interface. It is better if you write a PhoneGap plugin:

    http://docs.phonegap.com/en/2.0.0/guide_plugin-development_android_index.md.html#Developing%20a%20Plugin%20on%20Android

    We’ve already suffered through all the pains of making sure the JS interfaces are setup correctly. From your plugin you can get access to appView by using:

    this.webView
    

    Yes, appView is the only webview in PhoneGap.

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

Sidebar

Related Questions

Hi I am developing phonegap application. If I use console.log in index.html file then
I have developed the android phonegap application using html page and css. But My
I have a simple PhoneGap application as fallows: <!DOCTYPE HTML> <html> <head> <title>PhoneGap powered
I have a PhoneGap based application, written in html upon the Sencha Touch platform,
Can we have multiple HTML files in Phonegap application?
I have a phonegap application targeting iPad that needs to embed a video on
I have a phonegap application which will need to take a zip archive of
I'm working on a Phonegap application.I have used header for every page. But when
I have a PhoneGap application that works fine but occasionally is known to have
In android phonegap application I crated canvas using html and display image in that

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.