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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:10:11+00:00 2026-05-20T17:10:11+00:00

In my little app i have a webview, i only have one html file

  • 0

In my little app i have a webview, i only have one html file in the assets folder. I’m trying to use a named anchor to make a Jump Link but it doesn’t work. It only says Web page not available I don’t know where i’m wrong. Is it trying to load a html file with the name tag i provided?

WebView mWebView = (WebView) findViewById(R.id.mywebview);
        mWebView.loadUrl("file:///android_asset/topics.html");

EDIT:

here’s my html

<html>
<body>

<a href=”#tip”>Go somewhere</a>

//a lot of  <br/>...

Somewhere

<a name=”tip”></a>

</body>
</html>

And yes the topics.html is under assets/

  • 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-20T17:10:12+00:00Added an answer on May 20, 2026 at 5:10 pm

    Where does your program fail – with the loading or when you click the anchor? It sounds like the problem is with your HTML file, so you should probably show the code from that instead. 🙂 Also, the full LogCat output is handy too. The more info the merrier.

    I recently implemented a WebView, the HTML code is extremely straight-forward (since I know close to no HTML and just wanted an easy way to display documentation). A simple anchor is just this for example:

    <a href="#q1">Navigating the application</a>
    
    ...
    
    <a name="q1"></a> 
    <p><b>Navigating the application</b></p> 
    <p>...sliding motion (to the left or to the right) with your finger...</p>
    

    If your program is failing at the actual loading part, then ensure that you have placed the topics.html file correctly in the /assets/ folder in your project folder. It has to be at the very root of your project folder – ie. workspace\<projectname>\assets\topics.html

    Your code for loading the webpage looks fine.

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

Sidebar

Related Questions

I am working on a little WinForm app and have been trying to find
I have a little app that have by default youtube as homepage. You can
I have a little app up that has both CCLayer view and UIView. That
I am learning flex and have written a little app with a TextArea that
I have a little iOS5 app that shows images. I click on the image
I have a little HTML5 web app for mobile devices (running inside PhoneGap/Cordova). I
I Have to implement on my app a little map of a concert hall.
I've been using Neo4j for a little while now and have an app up
I have a little Problem with the app that I'm developing. In the App
I have a little temperature protocoling web app, where degrees get adjusted on a

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.