Displaying Google Map using WebView

Put your problem here if it does not fit any of the other categories.

Displaying Google Map using WebView

Postby Keisuke » Wed Apr 09, 2008 3:23 am

I am using WebView displaying custom Google Maps page, However I can't see Google map(I saw white screen).
And then I saw the follwing message in Logcat.

WARN/WebCore(598): Console: Can't find variable: GMap2 line: 18 source: http://xxxx/Mashup/uisample?action=Gnav ... =XXXXXXXXX

When com.google.android.browser is used. I see Google map page.

Do anyone know the WebView settings, to see Google map correctly. :D
Keisuke
Freshman
Freshman
 
Posts: 3
Joined: Fri Mar 14, 2008 3:10 am

Top

Postby Keisuke » Wed Apr 09, 2008 4:06 am

In addition, I have already used setJavascriptEnabled(true).

WebView webview = new WebView(this);
webview.getSettings().setJavaScriptEnabled(true);
Keisuke
Freshman
Freshman
 
Posts: 3
Joined: Fri Mar 14, 2008 3:10 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 17 guests