You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/platform/android/android_library.rst
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,19 @@ Below we break-down the steps used to create the GLTF Viewer app.
179
179
to the Android app's ``assets`` directory.
180
180
Using this approach requires passing the ``--main-pack <pck_or_zip_filepath_relative_to_assets_dir>`` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() <https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/platform/android/java/lib/src/org/godotengine/godot/GodotHost.java#L45>`_.
181
181
182
+
Example:
183
+
184
+
.. code-block:: java
185
+
186
+
@Override
187
+
publicList<String> getCommandLine(){
188
+
List<String> results =newArrayList<>();
189
+
results.addAll(super.getCommandLine());
190
+
results.add("--main-pack");
191
+
results.add("res://foo.pck");
192
+
return results;
193
+
}
194
+
182
195
The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.
0 commit comments