开发者

android lanuch unknown apk applications from command line

开发者 https://www.devze.com 2023-03-15 07:28 出处:网络
i\'m trying for a while to lunch apk apps, from adb. i know it\'s possible to open well known application like browser(am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity) w

i'm trying for a while to lunch apk apps, from adb. i know it's possible to open well known application like browser(am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity) which you know there's main activity. but what about other application which you don't know their's main activity, is there a way to get the main activity (or the activity's list) from adb, and than run the appilcation from adb as well?? i know it's possible using PackageManager() class, but i need to run it from comman开发者_StackOverflow社区d line(adb) and i have only the apk file.

thank's David Barns


adb -e install "package.apk"

This will install and launch the application on emulator.

0

精彩评论

暂无评论...
验证码 换一张
取 消