WebView cannot resolve URL by name after loading a few webpages in emulator

by Kenn Min Chong » Sat, 09 Jan 2010 03:34:31 GMT

Sponsored Links
 Hey there!
   OK, so, I have a WebView object that is programatically loading up
sites every minute or so. After a while, the WebView object in my
emulator errors out saying the web page cannot be found. I load up the
built-in Browser app instead and it couldn't even load up google.com.
However, if I then try to manually go to a site via IP, it'll work
fine. Any ideas on why this is happening?


Other Threads

1. Official way to search for nearby businesses?

Does anyone know the proper way to search for nearby businesses in
your own application? I'll cover several things I've tried below, but
they either don't work or require a lot of extra code.

GeoCoder#getFromLocationName works for specific place queries like
"white house". It returns nothing for something like "restaurant near
boston", however. I tested on both my T-Mobile G1 and in the 1.5_r3
SDK emulator. The blog specifically says it can be used to "search for
businesses", however:

There is a related issue in the tracker, but it's been marked released
with no comment:

Giving up on GeoCoder, sending an ACTION_VIEW Intent with a  "geo:0,0?
q=restaurant+near+boston" URI works great for the built in Maps
application, but sending it to my own subclass of MapActivity just
shows the default map you see when starting it normally.

Using an HttpURLConnection to "http://maps.google.com/?q=restaurant
+near+boston&output=kml" would get me the data, but then requires
writing a KML parser and calculating distances on my own.

Anyone have any advice?

Lance Nanek

2. Dialog windowBackground makes parent window go black


I wanted to change the frame around my Dialog.  So I set up a style:
    <style name="SpecialDialog" parent="android:Theme.Dialog">
        <item name="android:windowBackground">@drawable/my_frame</

and assigned it in the manifest:
        <activity android:name=".MyActivity" android:theme="@style/

And yay! I get my new frame.  However, the parent window disappears
(goes black).

Having a normal dialog:
<activity android:name=".MyActivity" android:theme="@android:style/
keeps the parent window visible.

Can I have a custom frame on a dialog and keep the parent window


3. How to detect/query the screen off event?

4. Window background disappears

5. C# on Android

6. ADC2 submission: Xeeku Search

7. I meet web view problem. It cannot connect to network via webview.