diff --git a/tutorials/platform/android/android_library.rst b/tutorials/platform/android/android_library.rst index 63e18b84627..0d3b5465dae 100644 --- a/tutorials/platform/android/android_library.rst +++ b/tutorials/platform/android/android_library.rst @@ -179,6 +179,19 @@ Below we break-down the steps used to create the GLTF Viewer app. to the Android app's ``assets`` directory. Using this approach requires passing the ``--main-pack `` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() `_. + Example: + + .. code-block:: java + + @Override + public List getCommandLine(){ + List results = new ArrayList<>(); + results.addAll(super.getCommandLine()); + results.add("--main-pack"); + results.add("res://foo.pck"); + return results; + } + The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.