TaifunFile: I can't find the path to in-app assets

Hello friends. With Taifunfile, I need to access the assets within the application. I can access it in test mode. but I can’t find which way when I compile apk. I just need to access the files in the entity with taifunfile when I create the apk. please help me?

1 Like

for that you need taifun toolsextension, and use path to assets block

component_method (12)

1 Like

Check this out App Inventor Extensions: Tools | Pura Vida Apps as @ImranTariq said.

By the way, this path Makeroid/assets wouldn’t be available if you install your app in another device. This path is created and used only by companion (except if you make it and you store files in it).

2 Likes

for test it will not work, but for compiled apk its working, i am already using it in my apps,

1 Like

Sorry, it doesn’t show images.

1 Like

thank you. But the pictures did not show.

1 Like

Note: this method will work only for the webviewer component. It does not make sense to use it for other components!

https://puravidaapps.com/tools.php

development path file:///mnt/sdcard/Makeroid/assets/

production path file:///android_asset/

3 Likes

this happens, because our friends at Kodular once decided, that it is a great idea to store the assets for the companion in directory /Makeroid/assets and not in /AppInventor/assets as all other distributions are doing it…

development path: /Makeroid/assets/
production path: //

see this similar example
kodularworkaround

Taifun
PS: the PathToAssets method will work only for the webviewer component…

5 Likes

It worked with the web. But it only works in test mode. I can’t get an image when I compile. do you have a sample code?

I hope this works. How do I access the extension?

2
With the web pulled data. It only works in test mode. does not work when compiling.