Load local (package) image into web browser

I want to load an image that is a media file in the APK (i.e. uploaded as a media file at design time) into a WebViewer component, but I can’t get it to work.

I know the formats for accessing such media files vary by component (e.g. for setting an image components picture to a package file I just put in the file name, whereas if I load a package file into a File component I have to precede the name by two slashes: “//” ).

I have tried zero, 1 2 and 3 slashes and none of them have worked.

Any suggestions?

Try this (for compiled app / APK):
file:///android_asset/image.jpg

for Companion:
file:///storage/emulated/0/AppInventor/assets/image.jpg
or:
/storage/emulated/0/AppInventor/assets/image.jpg

worked a treat - thank you, Anke!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.