Here is an extension, that declares storage permissions (READ & WRITE
) correctly in the Manifest:
DeclareReadWrite.aix (4.7 KB)
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
Since many components don’t declare storage permissions anymore after der 1.5.5 update, use this extension.
Even if your app doesn’t need these permissions, it’s harmless and has no disadvantages. But without declaring permissions in the Manifest, they cannot be requested (neither at runtime
on Android 6+ nor at install-time
on Android < 6).
12 Likes
S_Vicky
(Dr Vicky)
July 1, 2022, 2:31pm
#3
How to use this extension. Please share blocks.Thanks
S_Vicky:
Please share blocks.
See above.
Drag it into the Designer. That’s all.
1 Like
What about Android 11 it’s not working on it.
Shouldn’t we use blocks ? Ask permission?
1 Like
S_Vicky
(Dr Vicky)
July 1, 2022, 4:04pm
#7
I am unable to get you. Please can you share the blocks on designer?
What is not working?
On Android 11+ WRITE
permission does no longer exist and therefore it cannot be granted on Android 11.
Is it only necessary to insert the extension? Don’t need to modify anything in the blocks?
Yes.
There is nothing to modify!
As I said, there is only 1 block (and this helps to get the API of the device).
I inserted the extension in my project, but the bug continues, I can’t download it through the apk.
1 Like
Wondering how you defined android:maxSdkVersion="29"
considering there’s no annotation member for this in App Inventor.
1 Like
S_Vicky
(Dr Vicky)
July 2, 2022, 1:36pm
#17
Not working. Still The same issue
WRITE
is still declared only up to API 29 (Android 10).
Read my answers carefully …
1 Like
S_Vicky
(Dr Vicky)
July 2, 2022, 2:03pm
#22
Thanks
Now whats the solution?