Wednesday, 15 May 2013

shell - How do I tell if an android activity is finished from an external adb command? -



shell - How do I tell if an android activity is finished from an external adb command? -

in our testing, want utilize script run number of android activities. can utilize adb shell start activity command start these activities. there way, using adb command, tell when activity finishes? script needs know when first activity done before issuing next adb start activity command.

i did wanted bash script run adb command , show/wait until finished. worked me:

./adb shell start -w -n com.android.settings/.applicationsettings

the script waited applications menu load before continuing. not sure how work longer process it's worth shot.

android shell android-activity adb

No comments:

Post a Comment