white space allowed as part of file path?

前端 未结 2 812
南笙
南笙 2021-01-28 17:55

My question is kinda related to android_asset not working on Honeycomb?

Is it allowed to have spaces in the file path name of an html page located in the assets folder?<

相关标签:
2条回答
  • 2021-01-28 18:30

    Use %20 instead of space. URL has to be URL-encoded.

    0 讨论(0)
  • 2021-01-28 18:44

    Use a URI, which will address such issues.

    mWebView.loadUrl(new URI("file:///android_asset/Help File/helpfile.html"))
    
    0 讨论(0)
提交回复
热议问题