Taifun
September 14, 2020, 1:09pm
#3
this is the path to the assets for the webviewer component
use the file extension together with the Copy method…
protip: read the documentation there to find out, that you have to use 2 slashes to access a file from the assets, for example
//myFile.jpg
Taifun
3 Likes
Your assets file path is wrong
As @Taifun said
Try
vv.png this image in my assets,
please write full path with my image
Well you can see here how to copy file from assets to storage,
Yes, but the wrong path for APK. I checked it again (only “//” work for APK):
[grafik]
Same thing on AI2.
Companion or APK?
So for example your assets file path is //vv.png
( for apk only ) @bangladesh_firoz
Hope it helps
bangladesh_firoz:
it is no work
Can you send your blocks ? Make sure you are testing in apk and not companion
For companion use : file:///mnt/sdcard/Makeroid/assets/
Are you testing in companion?
bangladesh_firoz:
yes, in companion?
So you need to try this path
For example file:///mnt/sdcard/Makeroid/assets/vv.png
That’s for companion only.Apk is
Mohamed_Tamer:
//vv.png
And btw, you can make it using an if then return block:
if is companion
return file:///mnt/sdcard/Makeroid/assets/vv.png
else retrun //vv.png
Hope it helps
1 Like
you’re welcome Is it working now
kitavalf
(Valf)
September 14, 2020, 2:23pm
#17
How about. We use storage emulate on path
I think it will work as well.
please wait, i will tell you after checking
2 Likes
it worked as well.
but after coped this block is not work
bangladesh_firoz:
it worked as well.
Great
Strange are you sure it isn’t working?
yes
i triyed in companion