开发者

Absolute path of assets folder

开发者 https://www.devze.com 2023-01-24 07:27 出处:网络
How do I reference the assets from phone memory? I need it to write the absolute path 开发者_开发知识库into a html file to load some images which are in assets folder. This html is saved in the phone

How do I reference the assets from phone memory? I need it to write the absolute path 开发者_开发知识库into a html file to load some images which are in assets folder. This html is saved in the phone memory but I can't to save these images in the memory phone because these are very big.


file:///android_asset/..., where ... is the stuff inside your assets/ directory. Note that will only work within your own process, so you can load the HTML into a WebView this way, but not into the Browser application.

0

精彩评论

暂无评论...
验证码 换一张
取 消