Android adb 를 통 해 애플 리 케 이 션 시작

Android 에 서 는 인터페이스 에서 프로그램 을 시작 하 는 것 외 에 명령 행 에서 프로그램 을 시작 할 수 있 으 며 명령 행 도구 am 을 사용 합 니 다.
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

좋은 웹페이지 즐겨찾기