简单的 adb shell 命令启动 apk

来源:互联网 发布:jenkins php docker 编辑:程序博客网 时间:2024/06/10 07:26

android adb shell 命令启动某个activity的方法

命令

adb shell am start -n com.shawn.demo.test/.MainActivity

其中 com.shawn.demo.test 为apk的包名,.MainActivity 为activity的名称,如果此activity在apk包目录下,则可直接 “.”省略具体类名,如果不在的话,要加上

com.shawn.deom.test/com.shawn.deom.other.OtherActivity

其它命令参考:http://book.51cto.com/art/201006/206793.htm

原创粉丝点击