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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:52:49+00:00 2026-06-17T14:52:49+00:00

I have a simple Android app which is just a collection of webviews. Normally

  • 0

I have a simple Android app which is just a collection of webviews. Normally in the default Android browser or Chrome, the user can long press on an image and save it to their phone.

In the webview, the user doesnt have an option for long-pressing, but I’d like to be able to offer the same functionality for saving images to their phone.

Is this possible through javascript or jquery, or any other method?

Thanks.

  • 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-17T14:52:50+00:00Added an answer on June 17, 2026 at 2:52 pm

    it appears you have at least two (non-deprecated) options:

    • getHitTestResult() Ref: link
    • requestImageRef(Message msg) Ref: link

    For first option, Gets a HitTestResult based on the current cursor node. If a HTML::a tag is found and the anchor has a non-JavaScript URL, the HitTestResult type is set to SRC_ANCHOR_TYPE and the URL is set in the “extra” field. If the anchor does not have a URL or if it is a JavaScript URL, the type will be UNKNOWN_TYPE and the URL has to be retrieved through requestFocusNodeHref(Message) asynchronously. If a HTML::img tag is found, the HitTestResult type is set to IMAGE_TYPE and the URL is set in the “extra” field. A type of SRC_IMAGE_ANCHOR_TYPE indicates an anchor with a URL that has an image as a child node. If a phone number is found, the HitTestResult type is set to PHONE_TYPE and the phone number is set in the “extra” field of HitTestResult. If a map address is found, the HitTestResult type is set to GEO_TYPE and the address is set in the “extra” field of HitTestResult. If an email address is found, the HitTestResult type is set to EMAIL_TYPE and the email is set in the “extra” field of HitTestResult. Otherwise, HitTestResult type is set to UNKNOWN_TYPE.

    For Second Option:

    public void requestImageRef (Message msg)
    

    It Requests the URL of the image last touched by the user. msg will be sent to its target with a String representing the URL as its object

    Not sure if these options are compatible with a ‘long click’ too though.

    you may also be able to simply capture all loaded image resources using onLoadResource(WebView view, String url), build a list of image references and download the one that button click refers too.

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

Sidebar

Related Questions

I have a simple Android RSS reader app in which I am using SAX
I have just made an app for Android phones. It is a rather simple
I have written a simple app which atm just pops up a toast message
I have a simple android app to play videos. I have a main screen
I have a simple question. I am trying to design a simple Android app,
I have created a small and simple android app. I tried installing it on
I'm working on a relatively simple Android app. I want it to have an
I have a very simple dialog defined as: import android.app.AlertDialog; import android.content.Context; import android.view.LayoutInflater;
I have a simple client-server app on android. the android service communicates with the
I have created a database for my android app which contains static data and

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.