Android adb 를 통 해 애플 리 케 이 션 시작
1865 단어 안 드 로 이 드 소스 코드 개발 문제
usage: am [subcommand] [options]
start an Activity:
am start [-D] -D: enable debugging
send a broadcast Intent:
am broadcast
start an Instrumentation:
am instrument [flags]
-r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT)
-e : set argument to
-p : write profiling data to
-w: wait for instrumentation to finish before returning
start profiling:
am profile start
stop profiling:
am profile stop
specifications include these flags:
[-a ] [-d ] [-t ]
[-c [-c ] ...]
[-e|--es ...]
[--ez ...]
[-e|--ei ...]
[-n ] [-f ] []
시작 하 는 방법 은?
$ adb shell
$ am start -n { (package) }/{ }.{ (activity) }
예 를 들 어 패키지 이름 은 com.example.wdy.classifier 입 니 다.시작 명령 은 다음 과 같 습 니 다.
am start -n com.example.wdy.classifier/com.example.wdy.classifier.MainActivity