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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:50:44+00:00 2026-06-11T02:50:44+00:00

I have multiple html files which i saved in the assets folder. one of

  • 0

I have multiple html files which i saved in the assets folder. one of my html file is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
    .outer{width:300px; height:460px; padding:10px;}
</style>
</head>

<body>
<div class="outer">
    <h4 style="text-align:right; margin-bottom:30px; width:300px;"><a href="#0">HOME</a></h4>
    <h1>World Map -01</h1>
    <img src="world_map.png" width="300" alt="" />
    <h4 style="text-align:right; margin-top:30px; width:300px;"><a href="#2">NEXT</a></h4>
</div>
</body>
</html>

there is 3 more html file is as same as this.
The first page will loads. here I want to get the href and load the links manually by checking the href.

My code is:

public class WebvwActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        WebView web=(WebView) findViewById(R.id.web);
        web.getSettings().setJavaScriptEnabled(true);
        web.loadUrl("file:///android_asset/demo.html");
}
}

What i want to do for fetching the href value and load the links by checking the href value??

Thanks in advance

  • 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-11T02:50:45+00:00Added an answer on June 11, 2026 at 2:50 am

    You can use webview’s WebViewClient for this. There is a function shouldOverrideUrlLoading which can be used to detect the href value and can be acted upon accordingly.

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

Sidebar

Related Questions

I have multiple HTML files which vary only by a little - a few
so I have multiple HTML files which I need to get some praticular data
On my site, I have a PHP script which takes multiple source files (HTML,CSS,
I have multiple html files, which is to be combined into a single html
I have navigation.html (static coded navigtaion ) file loaded on multiple pages, using jQuery
I have multiple javascript functions in my html page. One of them, by far
I have this HTML code multiple times one after the other: <li> <img src=path/to/my/picture.jpg
I have a file download script that I have written, which reads files from
I have a input type=file tag in my html which allows user to select
I have multiple dropdown list: @Html.DropDownListFor(x => x.HaveColoSpace.SelectedOptions, new SelectList(Model.HaveColoSpace.Options, Value, Text), new {

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.