diff --git a/calculatorpp/misc/other/take_screenshots.sh b/calculatorpp/misc/other/take_screenshots.sh index 46eb13ad..bd7645a6 100755 --- a/calculatorpp/misc/other/take_screenshots.sh +++ b/calculatorpp/misc/other/take_screenshots.sh @@ -1,6 +1,7 @@ #!/bin/bash -predefined=0 +predefined=1 +scale=0.51 # first predefined @@ -9,7 +10,7 @@ then declare -a names=("AVD_Galaxy_Tab" "AVD_Nexus_S_by_Google" "AVD_Nexus_One_by_Google" "AVD_Nexus_7_by_Google" "AVD_Galaxy_Nexus_by_Google") for name in ${names[@]} do - $ANDROID_HOME/tools/emulator -ports 5580,5581 -avd $name & + $ANDROID_HOME/tools/emulator -ports 5580,5581 -avd $name -scale $scale & sleep 50 $ANDROID_HOME/tools/monkeyrunner ./take_screenshots.py ~/projects/java/android/calculatorpp/calculatorpp/misc/other/tmp/2012.11.25 $name $ANDROID_HOME/platform-tools/adb -s emulator-5580 emu kill @@ -19,10 +20,10 @@ fi # then all others -#declare -a densities=("160" "213" "240" "320") -declare -a densities=("213" "240" "320") -#declare -a resolutions=("480x640" "480x800" "480x854" "640x960" "1024x600" "1024x768" "1280x768") -declare -a resolutions=("480x640") +declare -a densities=("160" "213" "240" "320") +#declare -a densities=("213" "240" "320") +declare -a resolutions=("480x640" "480x800" "480x854" "640x960" "1024x600" "1024x768" "1280x768") +#declare -a resolutions=("480x640") declare -a targets=("android-16") for target in ${targets[@]} @@ -37,7 +38,7 @@ do name="$name$resolution" name="$name$target" - $ANDROID_HOME/tools/emulator -ports 5580,5581 -avd $name & + $ANDROID_HOME/tools/emulator -ports 5580,5581 -avd $name -scale $scale & sleep 5 $ANDROID_HOME/tools/monkeyrunner ./take_screenshots.py ~/projects/java/android/calculatorpp/calculatorpp/misc/other/tmp/2012.11.25 $name $ANDROID_HOME/platform-tools/adb -s emulator-5580 emu kill