-5

webpage is not available error in loading internal link of html file in android This is because of the extension given.
How to remove this extension?

3
  • somebody please help me solving this problem. my html page is displaying properly through assets folder. but when i am clicking the internal links of that html page then webpage is not available error message is showing. Commented Apr 25, 2014 at 5:52
  • is your page is available there ? Commented Apr 25, 2014 at 5:53
  • OK update your question with what you have tried and where you are facing issue Commented Apr 25, 2014 at 5:55

1 Answer 1

0
webView.loadUrl("file:///android_asset/filename.html");

This may help you...give your html filename in the place of "filename" in this url. And try serching in google when you face some problem. Simple que like this is not so appreciated here. And you will get many que like this once you search in SO. try this three links

link 1 ,link 2 , link 3

Sign up to request clarification or add additional context in comments.

8 Comments

i think u didnt get my question
i have already done this. and my html page is successfully displaying but when i am trying to click on the links provided in that html page. then it is showing error, because of the file extension (file:///android_assets/)
Try showing us wot you have tried..Are you using html and Js also for navigation??
webViewAbout = (WebView) findViewById(R.id.webViewAbout ); webViewAbout.loadUrl("file:///android_asset/About.html"); I have done this. this about page is displaying properly, but it contains a link www.somelink.com , when i am clicking on it, its showing "the webpage at file:///android_assets/www.somelink.com might be temporarily down
i am answering my own question as i find out solution... the problem was with my html file... in that href="www.omelink.com" was written. i have just changed it to href= "http(this bracket is to be removed)://www.somelink.com" and now its done.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.