Skip to content Skip to sidebar Skip to footer

Conflict Between Windows And Android?

Please help me solve this file path conflict: As you know, many HTML pages use relative paths starting with a '/' for the href attribute of link tags. For example: link href='/link

Solution 1:

Javadoc of loadDataWithBaseURL states:

Note for post 1.0. Due to the change in the WebKit, the access to asset files through   
"file:///android_asset/"for the sub resources is more restricted. If you provide null 
or empty stringas baseUrl, you won't be able to access asset files. If the baseUrl is
anything other than http(s)/ftp(s)/about/javascript as scheme, you can access asset 
files forsub resources

So basically only allowed URL for file:/// scheme is file:///android_asset/ where files are in your asset folder.

Post a Comment for "Conflict Between Windows And Android?"