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