ApplicationCommands
public final class ApplicationCommands
Commands to be used on applications.
Summary
Public methods
amStartActivityIntent
Added in 2.4.0-beta02
public final void amStartActivityIntent(
@NonNull Intent intent,
@NonNull String additionalArguments
)
Starts an activity intent via am start shell command, using the intent uri as target.
Note that parcelables are not serialized in the URI and so will be ignored as part of the intent when calling this method.
clearAppData
Added in 2.4.0-beta02
public final void clearAppData(@NonNull String packageName)
Clears the application data.
startApp
Added in 2.4.0-beta02
public final void startApp(@NonNull String packageName)
Starts the application. The first activity with category main and action launch is selected.
stopApp
Added in 2.4.0-beta02
public final void stopApp(@NonNull String packageName)
Stops the application.
