Unfortunately, it doesn’t work. When screen is initialized, nothing happens. I tried also to ask permission by clicking on an button but nothing happened. (I have installed the app on my phone)
Here are the blocks I used according to your advise:
External storage access scoped to app files and media
By default, apps targeting Android 10 and higher are given scoped access into external storage, or scoped storage . Such apps can see the following types of files within an external storage device without needing to request any storage-related user permissions:
you could try the Small Camera Extension by Juan Antonio to save the taken picture in a directory of your choice and set the directory to the application specific directory...
Returns the application specific directory /storage/emulated/0/Android/data/<packageName>/files
you can use to read or write files without READ_ or WRITE_EXTERNAL_STORAGE permission.
@Wayne let us know if you get it running by using this workaround...
So with Android 10, App Inventor and similar applications are loosing their accessibility unfortunately… I can try to run something like that, I will let you know.
Thank you very much for your time I really appreciate.
No need to ask for WRITE permission because the camera component does it automatically.
So you can only wait for the next update ...
Note:
To give users more control over their files and to limit file clutter, apps that target Android 10 (API level 29) and higher are given scoped access into external storage, or scoped storage, by default. Such apps have access only to the app-specific directory on external storage, as well as specific types of media that the app has created.
App Inventor does not yet target Android 10. It targets Android 9, so the Android 9 semantics ought to apply. There is a bug at the moment with the App Inventor Camera component affecting Android 10, and what you’re seeing is likely a symptom of that. There is a fix that has been merged that will go out in the next companion release:
You’re right. The previous issue I was thinking of was for Android 10, not Android 9. Yes everything should be working correctly on Android 9. I’ll amend my post.
I already tested to uninstall / reinstall but it doesn’t work. I guess it’s a deeper issue linked to Android 10 that needs a significant update of App Inventor.
Thank you all. So I will just wait for the next update