~eliasnaur/gio

2 2

Android build: how to set permissions like WRITE_EXTERNAL_STORAGE

Details
Message ID
<2140968391.827650.1736380220818@com4.strato.de>
DKIM signature
pass
Download raw message
Dear Elias,

I found the gogio sources and a variable called AndroidPermissions.
One of these would be WRITE_EXTERNAL_STORAGE.

I do not understand how to set all of these permissions,
let's say for the "kitchen" apk, as a first try.

FYI
I want to write an audio app - playing, recording, ... so reading and writing files would be necessary.

Sorry for bothering you,
Otfried
Details
Message ID
<CAFcc3FR97F+M10BD3P4yjxutMAwZg9k-a9sfgdRtYajBq7uUKg@mail.gmail.com>
In-Reply-To
<2140968391.827650.1736380220818@com4.strato.de> (view parent)
DKIM signature
pass
Download raw message
> I found the gogio sources and a variable called AndroidPermissions.
> One of these would be WRITE_EXTERNAL_STORAGE.
>
> I do not understand how to set all of these permissions,
> let's say for the "kitchen" apk, as a first try.

Have the application import
https://pkg.go.dev/gioui.org@v0.7.1/app/permission/storage. The gogio
tool looks for this package and will modify the android manifest to
request the proper permissions.

Cheers,
Chris
Details
Message ID
<764426542.804099.1736382097610@com4.strato.de>
In-Reply-To
<CAFcc3FR97F+M10BD3P4yjxutMAwZg9k-a9sfgdRtYajBq7uUKg@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
> Have the application import
> https://pkg.go.dev/gioui.org@v0.7.1/app/permission/storage. The gogio
> tool looks for this package and will modify the android manifest to
> request the proper permissions.


:-)
THX a lot
Reply to thread Export thread (mbox)