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

The Archive Base Latest Questions

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

To put it simple: I want to bookmark the current position (probably several positions)

  • 0

To put it simple: I want to bookmark the current position (probably
several positions) in a html file displayed in a WebView to later
restore it. Any little hint would help. 🙂

  • 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-12T01:15:51+00:00Added an answer on May 12, 2026 at 1:15 am

    If by “the current position” you mean a point somewhere in a given page, I do not believe that is possible…at least not purely from Java. The whole WebKit API exposed to Java lacks much of anything that deals with the content of pages.

    If you have control over the page content, and there’s a way to know these positions via in-page Javascript, you could:

    Step #1: Use WebView#addJavascriptInterface() to add an object with some sort of recordPosition() method, saving the information wherever is appropriate

    Step #2: Create a Javascript function that calls recordPosition() on the injected object.

    and then either:

    Step #3a: Trigger that Javascript function from Javascript itself (e.g., based on a click), or

    Step #3b: Call loadUrl("javascript:..."); on your WebView, where ... is replaced by Javascript code to trigger the Javascript function from step #2.

    Restoring these positions would have to work much the same way: have Javascript do the actual restores, possibly triggered by Java code.

    Note that I have no idea if what you want (get/set the current position) is available from Javascript, as I’m not much of an in-browser coder.

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

Sidebar

Related Questions

I want to put together simple TCP server using Python and Twisted. The server
To put it simple, there's a simple java swing app that consists of JFrame
To put it simple, I've written a JSE Swing app that needs to talk
To put it simple: a swing app that uses sqlitejdbc as backend. Currently, there's
Ok, this is possibly borderline-subjective, but I wonder where one would put a simple
Simple case: i put a DataTable in Cache DataTable table = SomeClass.GetTable(); Cache[test] =
Based on a simple test I ran, I don't think it's possible to put
Very simply put, I have the following code snippet: FILE* test = fopen(C:\\core.u, w);
I have a huge table and I want simple sorting. It could be so
Simply put, is there a way to create a 2D javascript array using similar

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.