You can references asset files with a file url by using “android_asset”, as in file:///android_asset/whatever. Is there something equivalent for the app’s home directory? I’ll be using the references in a static html file, so I don’t want to call getFilesDir(). I’m pretty sure the directory will always be /data/data/[package]/files, but in case that is different on a weird device, I’m wondering if there’s a file url shortcut.
You can references asset files with a file url by using android_asset, as in
Share
You can put your file into
res/rawfolder. For example your file ispage1.html, to use it in your activity:More references: data storage.