SAF: App Inventor implementation of Storage Access Framework

Probably the writing method.
Initial version writes/reads content as string, which works only for text/* files.
But v1.1beta enables you to directly write content as byte array. @Anke
https://github.com/vknow360/SAF/tree/beta

Here, Label1's text was set to created document's URI i.e. content://com.android.externalstorage.documents/tree/primary%3APictures/document/primary%3APictures%2FCompanion.png.
treeUri is content://com.android.externalstorage.documents/tree/primary%3APictures and documentUri is content://com.android.externalstorage.documents/tree/primary%3AAndroid/document/primary%3AAndroid%2Fdata%2Fedu.mit.appinventor.aicompanion3%2Ffiles%2Fassets%2FCompanion.png.

CopyDocument block seems to be not working for /Android subdirs.

Using these two blocks:

This is still missing from the extension :sweat_smile:

5 Likes