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?
-
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.Shruti– Shruti2014-04-25 05:52:51 +00:00Commented Apr 25, 2014 at 5:52
-
is your page is available there ?Sree– Sree2014-04-25 05:53:32 +00:00Commented Apr 25, 2014 at 5:53
-
OK update your question with what you have tried and where you are facing issueSree– Sree2014-04-25 05:55:27 +00:00Commented Apr 25, 2014 at 5:55
Add a comment
|
1 Answer
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
8 Comments
Shruti
i think u didnt get my question
Shruti
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/)
Sreedev
Try showing us wot you have tried..Are you using html and Js also for navigation??
Shruti
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
Shruti
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.
|