In Android, in addition to starting a program from the interface, you can also start the program from the command line, using the command line tool AM.
Enter am -- help in the work area of the ADB Tool
Bytes ------------------------------------------------------------------------------------------------------------------
Bash-3.2 # Am -- Help
Usage: am [subcommand] [Options]
Start an activity: am start [-D] [-W] <intent>
-D: Enable debugging
-W: Wait for launch to complete
Start a service: am startservice <intent>
Send a broadcast intent: AM broadcast <intent>
Start an instrumentation: am instrument [flags] <component>
-R: Print raw results (otherwise decode report_key_streamresult)
-E <Name> <value>: Set argument <Name> to <value>
-P <File>: Write profiling data to <File>
-W: Wait for instrumentation to finish before returning
Start profiling: am profile <process> Start <File>
Stop profiling: am profile <process> stop
Start monitoring: am monitor [-- GDB <port>]
-- GDB: Start gdbserv on the given port at crash/ANR
<Intent> specifications include these flags:
[-A <action>] [-D ] [-T <mime_type>]
[-C <Category> [-C <Category>]...]
[-E | -- es <extra_key> <extra_string_value>...]
[-- ESN <extra_key>...]
[-- EZ <extra_key> <extra_boolean_value>...]
[-E | -- EI <extra_key> <extra_int_value>...]
[-N <component>] [-F <flags>]
[-- Grant-read-Uri-Permission] [-- Grant-Write-Uri-Permission]
[-- Debug-log-resolution]
[-- Activity-brought-to-front] [-- activity-clear-top]
[-- Activity-clear-when-task-Reset] [-- activity-exclude-from-recents]
[-- Activity-launched-from-history] [-- activity-multiple-task]
[-- Activity-no-animation] [-- activity-no-history]
[-- Activity-no-user-action] [-- activity-previous-is-top]
[-- Activity-reorder-to-front] [-- activity-reset-task-if-needed]
[-- Activity-single-top]
[-- Cycler-registered-only] [-- Cycler-replace-pending]
[<URI>]
Bytes ------------------------------------------------------------------------------------------------------------------
The start method is
# Am start-N package name/package name. Activity name
The startup method can be obtained from the androidmanifest. xml file of each application.
The startup methods of music and video are as follows:
# Am start-N com. Android. Music/COM. Android. Music. musicbrowseractivity
# Am start-N com. Android. Music/COM. Android. Music. videobrowseractivity
# Am start-N com. Android. Music/COM. Android. Music. mediaplaybackactivity
The start method of camera (CAMERA) is as follows:
# Am start-N com. Android. Camera/COM. Android. Camera. Camera
Browser is started as follows:
# Am start-N com. Android. Browser/COM. Android. browser. browseractivity
Start the browser:
Am start-A Android. Intent. Action. View-d
Http://www.google.cn/
Call number:
Am start-A Android. Intent. Action. Call-D Tel: 10086
Start Google map to go directly to Shanghai:
Am start-A Android. Intent. Action. View GEO: 0, 0? Q = Shanghai