support custom launch arguments #76

Closed
opened 2025-08-09 17:13:16 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @adelphes on 4/20/2020

Fixes #82

Add support for a new amStartArgs launch configuration property to allow users to define their own am start arguments. This is similar to the existing pmInstallArgs launch option, which allows customisation of the APK installation.

The new property takes a list of strings defining the arguments to append to am start. The arguments must include everything (including -D to allow debugging and the name of the activity/component to launch).

"amStartArgs": [
  "-D",
  "--activity-brought-to-front",
  "-a android.intent.action.MAIN",
  "-c android.intent.category.LAUNCHER",
  "-n package.name/launch.activity"
]

(The user must replace package.name/launch.activity with the name of the component to launch).

Because amStartArgs must include the component to launch, this option is incompatible with the launchActivity option.

The output from the am start command is now printed to the Debug Console, showing which component is being launched.

*Originally created by @adelphes on 4/20/2020* Fixes #82 Add support for a new `amStartArgs` launch configuration property to allow users to define their own `am start` arguments. This is similar to the existing `pmInstallArgs` launch option, which allows customisation of the APK installation. The new property takes a list of strings defining the arguments to append to `am start`. The arguments must include everything (including `-D` to allow debugging and the name of the activity/component to launch). ```json "amStartArgs": [ "-D", "--activity-brought-to-front", "-a android.intent.action.MAIN", "-c android.intent.category.LAUNCHER", "-n package.name/launch.activity" ] ``` (The user must replace `package.name/launch.activity` with the name of the component to launch). Because `amStartArgs` must include the component to launch, this option is incompatible with the `launchActivity` option. The output from the `am start` command is now printed to the Debug Console, showing which component is being launched.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#76
No description provided.