vab icon indicating copy to clipboard operation
vab copied to clipboard

Need a way to ask for permissions

Open xandro0777 opened this issue 2 years ago • 4 comments

Tried to open a file in /sdcard/ and got EACCES. I guess the app should have acquired the necessary perm, though not perfectly sure. See also https://github.com/vlang/vab/issues/130

xandro0777 avatar Oct 12 '21 21:10 xandro0777

Added the permission manually in android/java/AndroidManifest.xml which works. Didn't realize the file can be edited by hand.. can it? Should that be the recommended approach?

xandro0777 avatar Oct 12 '21 22:10 xandro0777

Yes we need something set up for this. So far the best options is to either bake it into the VActivity or try something via JNI

larpon avatar Oct 13 '21 13:10 larpon

I was create for golang, but you can use it: https://github.com/MatejMagat305/golang-prototype-permision/blob/main/permisions/android.c

MatejMagat305 avatar Dec 17 '22 14:12 MatejMagat305

Nice! Thanks!

larpon avatar Dec 17 '22 19:12 larpon