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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:03:04+00:00 2026-06-15T13:03:04+00:00

I have a native app that has an internal web browser. In the web

  • 0

I have a native app that has an internal web browser.
In the web browser I will open my mobile web app that I had created myself.
What I want to do is to send the native device’s information such as longtitude, latitude, battery status or device name when the user clicks a button on the interneal browser. Is there a way I can do this?

I can provide more information if needed. Thank you!

  • 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-15T13:03:05+00:00Added an answer on June 15, 2026 at 1:03 pm

    The easiest way is to create a javascript interface. That way you can call Java methods from javascript.

    http://developer.android.com/guide/webapps/webview.html Section “Binding JavaScript code to Android code”

    To make it more clear:

    1. call javascript method (javascript will call java method)
    2. that java method will query android os for info you want
    3. java method will return all that info back to javascript
    4. javascript can now display or send those data somewhere
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a web app that calls out to a native app
I have a legacy Java (not my native language) app that I'm trying to
Quick question. I have an app that use a native DLL through PInvoke, this
I am developing native iPhone app. I have one requirement that, there are 5
I have an android app which has native code. The native code needs to
I have a native object (C++) that has a gcroot pointer to a managed
I have an app that can be accessed on mobile phones, both iOS and
I am creating an iOS web app that has a fixed div (say 200px
I have a native library for Android that has some files that include NEON
I am designing a web app that has some information that needs to be

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.