Replies: 1 comment
-
What I've done to workaround this for now (for file management only) is to use the app-specific storage API (https://developer.android.com/training/data-storage/app-specific) instead as it does not rely on onActivityResult. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently trying to port one of my programs (winit/wgpu) to Android but I need file selection. Currently, I have the intent being called successfully:
However, now I've come into the problem where in order to access onActivityResult (https://developer.android.com/reference/android/app/Activity#onActivityResult(int,%20int,%20android.content.Intent), I believe I would have to do it in Java since it requires a method override and not like a native method. I don't know how this could be integrated in this set of tools (maybe have an optional project built into the build process that has native methods that one can override from JNI though idk if that will still get results while the NativeActivity is running). In the meantime, if anyone has any tips on how I can get this working, I'd greatly appreciate it. If I come across something, I'll put it here. I think documentation/examples for stuff like this would also be useful.
Beta Was this translation helpful? Give feedback.
All reactions