Skip to content

Commit ba92a4f

Browse files
committed
fix warnings and periods
1 parent 8c95e79 commit ba92a4f

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

tutorials/platform/android/javaclasswrapper_and_androidruntimeplugin.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,27 @@ This example creates an intent to send a text:
135135
activity.startActivity(intent)
136136
137137
Example: Using an Intent to Save an Image to an Android Gallery
138-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
138+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139139

140140
.. code-block:: gdscript
141+
141142
# Retrieve the AndroidRuntime singleton.
142-
var android_runtime = Engine.get_singleton("AndroidRuntime")
143-
if android_runtime:
144-
var Intent = JavaClassWrapper.wrap("android.content.Intent")
145-
var activity = android_runtime.getActivity()
143+
var android_runtime = Engine.get_singleton("AndroidRuntime")
144+
if android_runtime:
145+
var Intent = JavaClassWrapper.wrap("android.content.Intent")
146+
var activity = android_runtime.getActivity()
146147
var intent = Intent.Intent()
147148
148-
# Create the File and Uri
149+
# Create the File and Uri.
149150
var Uri = JavaClassWrapper.wrap("android.net.Uri")
150-
var File = JavaClassWrapper.wrap("java.io.File")
151-
var file = File.File(file_path_to_image_here)
152-
var uri = Uri.fromFile(file)
151+
var File = JavaClassWrapper.wrap("java.io.File")
152+
var file = File.File(file_path_to_image_here)
153+
var uri = Uri.fromFile(file)
153154
154-
# Build the Intent
155-
var intent = Intent.Intent()
156-
intent.setAction(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE)
157-
intent.setData(uri)
155+
# Build the Intent.
156+
var intent = Intent.Intent()
157+
intent.setAction(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE)
158+
intent.setData(uri)
158159
159-
# Broadcast it
160-
activity.sendBroadcast(intent)
160+
# Broadcast it.
161+
activity.sendBroadcast(intent)

0 commit comments

Comments
 (0)