vab
vab copied to clipboard
Need a way to ask for permissions
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
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?
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
I was create for golang, but you can use it: https://github.com/MatejMagat305/golang-prototype-permision/blob/main/permisions/android.c
Nice! Thanks!