I checked several times the blocks, but I was too focused on the blocks to be equal to your suggestion, not on the strings, and I didn't noticed that mistake. Sorry Anke, I really apologize for this.
However, now the app saves the pictures, but the issue about the permissions is unchanged. As you suggested, is there some tools for debugging?
Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Trying to push the limits!
, Snippets and Tutorials from Extensions Pura Vida Apps by Taifun.
Do files uploaded in the Media panel in AI (example below) go to the ASD? If so, should I be able to access them through the ASD Path? For example, if I wanted the path to the
model.json file uploaded in Media, would it be
(I'm asking this because as of now I cant access them through this path, Java fires a
No, files from Assets don't go to ASD.
You need to first copy files from assets to ASD then you can access them from path of that file.
You can use Copy Assets files block from ASD Downloader extension.
ASD Downloader extension to download files in App Specific Directory (ASD) without READ or WRITE PERMISSION. Since ASD is always accessible to READ and WRITE files within the app it does not requires READ and WRITE PERMISSION.
Nowadays due to new restrictions in higher Android versions it is difficult to manage files without READ and WRITE PERMISSIONS where ASD is very useful to store downloaded files and manage them without any permission.
This extension allows you download…
@The_K_Studio great extension! Worked wonders, thank you so much.
Is this extension by any chance open source?
@Anke is your extension open source?
No, only with Companion. With the compiled app (APK, AAB) files in the assets are in the
internal storage. File in the ASD are in the external stoarge.
From an Android point of view there are an → Internal Storage and an → External Storage .
1. Internal Storage
The Internal Storage can only be accessed with a rooted device.
1.1 The app package is saved in
In order to be able to debug your app, AI2 saves the assets for → Companion on devices with
Android ≥ 10 (API ≥ 29):
Android < 10 :
Everytime I try to import this extension, I get an error saying the DatePicker control can't be found and builds fail. If I remove the extension, the app works. Weird.
I AM using the date picker in my app.
Try this simple app:
GetASD_DatePicker.aia (6.2 KB)
(No issues here.)