Android通过adb启动应用
来源:互联网 发布:实时电脑远程软件 编辑:程序博客网 时间:2024/05/17 18:46
在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
0 0
- Android通过adb启动应用
- 通过eclipse开发Android应用,启动adb失败
- Android adb 启动应用
- Android 通过ADB Wireless无线调试应用
- Android 通过ADB Wireless无线调试应用
- adb 通过eclipse读取Android应用日志
- Android中 ADB shell启动应用说明
- 【Android】通过adb shell + am启动android应用程序的方法
- 获取整机应用信息以及启动界面(通过adb启动应用)
- adb 启动应用
- adb 广播启动应用
- adb启动应用
- adb 命令启动应用
- adb 启动应用
- pc 应用 通过 usb adb 与 android客户端通讯
- 通过URL Scheme启动Android应用
- android通过包名启动应用
- Android中通过intent启动另一个应用
- 关于“50% CPU 占有率”题目的内容扩展
- 点击对话框的任何位置都能拖动,模拟单机了鼠标左键
- 国外7岁小孩总结活到百岁25件事
- Socket通信原理探讨(C++为例)
- Android中Parcelable接口用法
- Android通过adb启动应用
- 四、文本和输出
- Generic Programming and the STL笔记6--Function Object Classes
- DBUtils学习总结
- 【原创】C语言处理文件数据(5)
- Android 单个Activity后台运行,及Activity隐藏但是不调用OnDestory方法
- "Command /usr/bin/codesign failed with exit code 1",真机调试出错解决办法
- iOS 实现一个类似电商购物车界面示例
- 浅谈java 中构建可执行 jar 包的几种方式