Vasvari is right. This is a known bug: Issue 17327:

I tried the same code on a android phone running 2.3.4 (and using api
level 10) and i could not see any issues with the white spaces in the
path.

Thanks all.


On Jun 26, 3:07 am, NaveenShrivastva <[email protected]>
wrote:
> On Sun, Jun 26, 2011 at 1:25 PM, Zsolt Vasvari <[email protected]> wrote:
> > IIRC, this is a know bug.  Please search onhttp://b.android.com
>
> > On Jun 26, 3:46 pm, droid-stricken <[email protected]> wrote:
> > > Hi All,
>
> > > I am doing the following, but seems not to be working -
>
> > > mWebView = (WebView) findViewById(R.id.webView1);
> > > mWebView.loadUrl("file:///android_asset/Help File/helpfile.html");
>
> > > I tried the following -
> > > ------
> > > 1.
> > > mWebView.loadUrl("file:///android_asset/Help%20File/
> > > helpfile.html"); // replaced white space with %20
> > > -------
>
> > > 2.
> > > String encodedString = URLEncoder.encode("Help File","utf-8");
> > > mWebView.loadUrl("file:///android_asset/" + encodedString + "/
> > > helpfile.html");
> > > ------
>
> > > Neither 1 nor 2 worked.
>
> > > I am using a device running Android 3.1 but using API-11. Tried other
> > > API-levels such as 8,9,10 and 12. Nothing worked.
>
> > > Any ideas what i might be doing wrong?
>
> > > TIA.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> Please place your html file in asets folder in android then fetch from there
> and display .
>
> that's try .
>
> --
> Naveen Shrivastava

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to