-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example showing how to request for permissions #19
Comments
@charleschege That indeed doesn't say much, as we don't know which line in your example corresponds to line |
Sorry about that. Its permission_read.into(), |
An example to show how to request for permissions would be more ideal though. Like the audio example is well done |
Right, yes, you are calling EDIT: Neither does https://developer.android.com/reference/android/os/storage/StorageManager, I think that method has to be called on an |
Sorry I missed that while copy pasting. Changing it to STORAGE_SERVICE, still same error |
Again, as mentioned above |
Thanks for pointing me to the permissions repo |
error[E0308]: mismatched types |
Is there an example showing how to request for example
STORAGE
permissions using jni and ndk-context like:With the strict Rust types enforced it can be difficult to know exactly what to do and where the errors occured like the example above results in error:
Which doesn't say much.
The text was updated successfully, but these errors were encountered: