簡單的 adb shell 命令啓動 apk

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

發佈了36 篇原創文章 · 獲贊 7 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章