I use a script like this:
adb install ${TargetApkPath}
adb shell monkey -p ${PackageName} -v 1
where the two parameters are the apk you want to install, then the
package name
you can append an -r to "adb install" as well, so you don't have to
uninstall it everytime.
tj
On 05/27/2011 09:27 AM, daniel wrote:
Hi,
If have a good way to run app on command shell?
The app will be auto download to device and auto run when we use
eclipse to develop, but how to do it on command?
I can use "adb install xxx.app" to install app, but I must open
device and click it to run.
Regards,
daniel
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en