-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add Android Gallery Example to JavaClassWrapper Doc #11393
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
base: master
Are you sure you want to change the base?
Conversation
|
these are the warnings that need to be fixed first
|
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Outdated
Show resolved
Hide resolved
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
Show resolved
Hide resolved
|
I’m unsure about adding this example. We already have an example that covers |
|
There are certainly a lot of examples on this page, but I think this one is really important. If a causal Android user wants to access any photos saved by a Godot application, this code would need to be included, as the user shouldn't be expected to download a 3rd party file explorer to access the photo. It also explicitly covers using URIs with Intents, which the other example doesn't show. |
This is just adding an extra example to the Javaclasswrapper and Android Runtime Plugin doc page, showing how to use an Intent to let the Android gallery know that an image has been saved somewhere on the device.
This is useful when trying to save an image to an Android device, since the image will not show up automatically in the users gallery even if the image has created on the disk. The media scanner must be notified of the image, which is what this code snippet does.
This is also my first godot-docs PR, so apologies if I've missed any requirements to merge. Please let me know and I will address them.