Issue
I am using Android Studio and wonder if it is possible to add some ADB commands to the build sequence. Specifically, before the app is installed on my USB-connected device I would like to send a key event to wake the device. Can the ADB commands that run at the end of the build sequence be customized? Where would these custom commands be entered?
Thanks
Solution
You can create a batch file with the following commands
gradlew installDebug
adb [whatever you want]
start your activity with this
am start -n yourpackagename/.activityname
Answered By - Androiderson
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.