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.
精彩评论