Files
tldr/pages.zh_TW/android/am.md
Vitor Henrique 006abfda34 pages*: sync https://developer.android.com more info links (#12288)
* pages*: sync https://developer.android.com more info links

* dalvikvm: fix wrong link
2024-02-22 17:53:50 +05:30

21 lines
529 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# am
> Android 活動管理器。
> 更多資訊:<https://developer.android.com/tools/adb#am>.
- 啟動一個指定的活動:
`am start -n {{com.android.settings/.Settings}}`
- 啟動一個活動並將資料傳遞給它:
`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}`
- 啟動與特定操作和類別匹配的活動:
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`
- 將意圖intent轉換為 URI
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`