We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc45422 commit ce4fcf4Copy full SHA for ce4fcf4
tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst
@@ -135,7 +135,7 @@ This example creates an intent to send a text:
135
activity.startActivity(intent)
136
137
Example: Saving an image to the Android gallery
138
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139
140
.. code-block:: gdscript
141
@@ -152,8 +152,7 @@ Example: Saving an image to the Android gallery
152
var file = File.File(file_path_to_image_here)
153
var uri = Uri.fromFile(file)
154
155
- # Build the Intent.
156
- var intent = Intent.Intent()
+ # Set Action and Data of Intent.
157
intent.setAction(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE)
158
intent.setData(uri)
159
0 commit comments