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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:59:50+00:00 2026-05-26T13:59:50+00:00

I am creating an app where i use a WebView this is how the

  • 0

I am creating an app where i use a WebView this is how the code loks like in the
onCreate method

OnCreate method in the Main Activity

On that Default.aspx page i have a button from which i call an android method . Below is the code for the Javascript interface and then the HTML for the button which calles this method.

Adding the javascript interface to the web view

And below is the HTML code where onclick of the button the WebInterface classes method “doEchoTest” will be called.
HTML where the Android call is being made..

In the doEchoTest method i call the mAppView.loadUrl() with the javascript calling the method in the aspx page that is the method “returnNow“

WebInterface class method which contains the "doEchoTest"

This javascript method never gets called ,Now i know one reason is because this webview.loadUrl() method contains an URL which is not from the assets folder ????

Is there any way i could achive the above ??? That is webView.loadUrl loading an external url that is with http://something ….. . Is there any way i could pass data to this page upon calling of this android java method “doSomeTest” ??

Thanks in advance ,

Francis P.

  • 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-26T13:59:50+00:00Added an answer on May 26, 2026 at 1:59 pm

    I am not sure that a javascript alert will do anything without a WebChromeClient attached, could be wrong though. It may be the returnNow function is being called, its just not doing anything.

    You can pass data to the url by using GET request parameters ?param=value&param2=value

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

Sidebar

Related Questions

I'm creating and app that will rely on a database, and I have all
I'm in the process of creating an app. I'd like to have a pared
I'm creating an app with a number of videos/large images that will use appcache
I am creating a web app that will use OpenID logins and OAuth tokens
I'm in the process of creating an app that would use iCal format calendars,
I have a service app that creates AppDomain's during the course of its use
I'm creating an app that uses a disk to browse files and such, like
I'm creating app that use autocomplete places google api. And I don't know what
I'm creating an app that will use UIImagePicker to let users pull custom images
We're creating a new consumer/public-facing ASP.Net web app. There are two concerns: --Use cookie

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.