Strange WebView "Web Page Not Available" behavior after application runs for a long time

by Kenn Min Chong » Tue, 05 Jan 2010 12:47:34 GMT


Sponsored Links
 Hey there!
   So, I have this simple app that contains a WebView object. My code
basically tells my WebView object to load some pages every minute or
so. The problem is, after the application runs for about 9-10 sites,
every time I ask the WebView object to load a new URL I get a "Web
page not available" error. Why is this happening?

--



Strange WebView "Web Page Not Available" behavior after application runs for a long time

by Kenn Min Chong » Sat, 09 Jan 2010 03:32:07 GMT


 Alright, I think I narrowed down the issue. Once my WebView gets stuck
in an "unresolveable" state, I tried to use the Browser app instead in
the emulator, and it no longer is able to resolve and URL I give.
HOWEVER, if I give it the IP address of the site instead, it works
just fine! So, I think there is something wrong with it when it tries
to resolve a name. Any ideas on how to resolve this?



> page not available" error. Why is this happening?


Sponsored Links


Other Threads

1. MediaScannerConnectionClient which content provider?





The Uri that you get back will tell you which database it was added to.

--~--~---------~--~----~------------~-------~--~----~

2. How to detect orientation changed event in the webpage

Hi all,

I have created a webpage and will browse it through HTC MAGIC default
browser.
For my webpage, it needs to use different layout under landscape/
portrait.
That is, not only I want to get current orientation but also want to
be noticed of orientation changed event.
After trying, I found that using "window.orientation" can get current
orientation (0 for portrait and 90 for landscape).
But I cannot find any information about creating event listener such
as iPhone's "window.onorientationchange".
Any ideas?
--~--~---------~--~----~------------~-------~--~----~

3. Why I got the error "Sorry, this video cannot be played"

4. Reasons to Love Android

5. APK execution from shell command line.

6. Not downloading resource in Java.net.ResponseCache. Framework issue?

7. ListView convertView recycler showing duplicates?