2021-03-25 21:57:15 +00:00
|
|
|
# am
|
|
|
|
|
|
|
|
> Android activity manager.
|
2024-02-16 15:37:37 +00:00
|
|
|
> More information: <https://developer.android.com/tools/adb#am>.
|
2021-03-25 21:57:15 +00:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Start the activity with a specific component and package [n]ame:
|
2021-03-25 21:57:15 +00:00
|
|
|
|
|
|
|
`am start -n {{com.android.settings/.Settings}}`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Start an intent [a]ction and pass [d]ata to it:
|
2021-03-25 21:57:15 +00:00
|
|
|
|
|
|
|
`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}`
|
|
|
|
|
2023-01-02 11:08:10 +00:00
|
|
|
- Start an activity matching a specific action and [c]ategory:
|
2021-03-25 21:57:15 +00:00
|
|
|
|
|
|
|
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Convert an intent to a URI:
|
2021-03-25 21:57:15 +00:00
|
|
|
|
|
|
|
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`
|