Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android webview url request with query string

I need to know, in android sdk 4.0

the following line says that 'the file is not found'. But the webview loads perfectly in sdk 2.2 and 2.3 etc.

mWebView.loadUrl("file:///android_asset/currentLocation.html?width_="+grosswt+"&height_="+grossht);

Is there any other way to send query string with url in android webview?

like image 962
Rizwan M.Tuman Avatar asked Dec 27 '11 11:12

Rizwan M.Tuman


2 Answers

This is a well known bug: http://code.google.com/p/android/issues/detail?id=17535

You can find a workaround for Honeycomb and ICS here:
http://bricolsoftconsulting.com/fixing-the-broken-honeycomb-and-ics-webview/

like image 167
Theo Avatar answered Oct 24 '22 03:10

Theo


Yes, this is a known bug, even in ICS.

Google don't feel like fixing it.

http://code.google.com/p/android/issues/detail?id=17535

like image 39
Dino Fancellu Avatar answered Oct 24 '22 03:10

Dino Fancellu