changes
BIN
android-app/misc/doc/GoogleAdMobAdsSdk-4.3.1-javadocs.zip
Normal file
BIN
android-app/misc/doc/achartengine-0.7.0-javadocs.zip
Normal file
BIN
android-app/misc/lib/GoogleAdMobAdsSdk-4.3.1.jar
Normal file
BIN
android-app/misc/lib/achartengine-0.7.0.jar
Normal file
BIN
android-app/misc/lib/achartengine-0.7.1.jar
Normal file
69
android-app/misc/other/prepare_avds.sh
Normal file
@@ -0,0 +1,69 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
declare -a densities=("160" "213" "240" "320")
|
||||
declare -a resolutions=("480x640" "480x800" "480x854" "640x960" "1024x600" "1024x768" "1280x768")
|
||||
declare -a targets=("android-16")
|
||||
|
||||
for target in ${targets[@]}
|
||||
do
|
||||
for density in ${densities[@]}
|
||||
do
|
||||
|
||||
for resolution in ${resolutions[@]}
|
||||
do
|
||||
name="AVD"
|
||||
name="$name$density"
|
||||
name="$name$resolution"
|
||||
name="$name$target"
|
||||
|
||||
echo "Creating AVD $name"
|
||||
echo "Density: $density"
|
||||
echo "Resolution: $resolution"
|
||||
echo "Target: $target"
|
||||
|
||||
$ANDROID_HOME/tools/android -s create avd -n $name -t $target -b x86 --force -s $resolution
|
||||
|
||||
if grep -R "hw.lcd.density" $HOME/.android/avd/$name.avd/config.ini
|
||||
then
|
||||
# replace density in config.ini
|
||||
sed -i "s/hw.lcd.density=240/hw.lcd.density=$density/g" $HOME/.android/avd/$name.avd/config.ini
|
||||
else
|
||||
# code if not found
|
||||
echo "hw.lcd.density=$density" >> $HOME/.android/avd/$name.avd/config.ini
|
||||
fi
|
||||
|
||||
echo "sdcard.size=64M" >> $HOME/.android/avd/$name.avd/config.ini
|
||||
echo "vm.heapSize=48" >> $HOME/.android/avd/$name.avd/config.ini
|
||||
echo "hw.ramSize=256" >> $HOME/.android/avd/$name.avd/config.ini
|
||||
|
||||
#arr=(${resolution//x/ })
|
||||
|
||||
#echo "hw.lcd.width = ${arr[0]}" >> $HOME/.android/avd/$name.avd/config.ini
|
||||
#echo "hw.lcd.height = ${arr[1]}" >> $HOME/.android/avd/$name.avd/config.ini
|
||||
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
for target in ${targets[@]}
|
||||
do
|
||||
for density in ${densities[@]}
|
||||
do
|
||||
|
||||
for resolution in ${resolutions[@]}
|
||||
do
|
||||
name="AVD"
|
||||
name="$name$density"
|
||||
name="$name$resolution"
|
||||
name="$name$target"
|
||||
|
||||
$ANDROID_HOME/tools/emulator -avd $name &
|
||||
$ANDROID_HOME/tools/monkeyrunner ./wait_device.py
|
||||
$ANDROID_HOME/platform-tools/adb -s emulator-5580 emu kill
|
||||
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
|
24
android-app/misc/other/remove_avds.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
declare -a densities=("160" "213" "240" "320")
|
||||
declare -a resolutions=("320x480" "480x640" "480x800" "480x854" "640x960" "1024x600" "1024x768" "1280x768" "1536x1152" "1920x1200")
|
||||
declare -a targets=("android-16")
|
||||
|
||||
for target in ${targets[@]}
|
||||
do
|
||||
for density in ${densities[@]}
|
||||
do
|
||||
|
||||
for resolution in ${resolutions[@]}
|
||||
do
|
||||
name="AVD"
|
||||
name="$name$density"
|
||||
name="$name$resolution"
|
||||
name="$name$target"
|
||||
|
||||
$ANDROID_HOME/tools/android -s delete avd -n $name
|
||||
|
||||
done
|
||||
done
|
||||
done
|
77
android-app/misc/other/take_screenshots.py
Normal file
@@ -0,0 +1,77 @@
|
||||
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
|
||||
import time
|
||||
|
||||
import sys
|
||||
|
||||
outFolder = sys.argv[1]
|
||||
outFilename = sys.argv[2]
|
||||
|
||||
print ''
|
||||
print 'Screenshot will be located in ' + outFolder + ' with name ' + outFilename;
|
||||
|
||||
apk = '/home/serso/projects/java/android/calculatorpp/calculatorpp/misc/other/tmp/2012.11.25/calculatorpp.apk'
|
||||
package = 'org.solovyev.android.calculator'
|
||||
activity = 'org.solovyev.android.calculator.CalculatorActivity'
|
||||
mobileActivity = 'org.solovyev.android.calculator.CalculatorActivityMobile'
|
||||
operatorsActivity = 'org.solovyev.android.calculator.math.edit.CalculatorOperatorsActivity'
|
||||
deviceName = 'emulator-5580'
|
||||
|
||||
def takeScreenshot (folder, filename):
|
||||
screenshot = device.takeSnapshot()
|
||||
screenshot.writeToFile(folder + '/' + filename + '.png','png')
|
||||
return
|
||||
|
||||
print 'Waiting for device ' + deviceName + '...'
|
||||
device = MonkeyRunner.waitForConnection(100, deviceName)
|
||||
|
||||
if device:
|
||||
|
||||
print 'Device found, removing application if any ' + package + '...'
|
||||
device.removePackage(package)
|
||||
|
||||
print 'Installing apk ' + apk + '...'
|
||||
device.installPackage(apk)
|
||||
|
||||
runComponent = package + '/' + activity
|
||||
|
||||
print 'Starting activity ' + runComponent + '...'
|
||||
device.startActivity(component=runComponent)
|
||||
|
||||
# sleep while application will be loaded
|
||||
MonkeyRunner.sleep(15);
|
||||
|
||||
print 'Taking screenshot...'
|
||||
#outFilename = outFilename + '_' + str(time.time())
|
||||
takeScreenshot(outFolder, outFilename);
|
||||
|
||||
runComponent = package + '/' + operatorsActivity
|
||||
|
||||
print 'Starting activity ' + runComponent + '...'
|
||||
device.startActivity(component=runComponent)
|
||||
|
||||
# sleep while application will be loaded
|
||||
MonkeyRunner.sleep(4);
|
||||
|
||||
print 'Taking screenshot...'
|
||||
#outFilename = outFilename + '_' + str(time.time())
|
||||
takeScreenshot(outFolder, outFilename + '_operators');
|
||||
|
||||
runComponent = package + '/' + mobileActivity
|
||||
|
||||
print 'Starting activity ' + runComponent + '...'
|
||||
device.startActivity(component=runComponent)
|
||||
|
||||
# sleep while application will be loaded
|
||||
MonkeyRunner.sleep(4);
|
||||
|
||||
print 'Taking screenshot...'
|
||||
#outFilename = outFilename + '_' + str(time.time())
|
||||
takeScreenshot(outFolder, outFilename + '_mobile');
|
||||
|
||||
print '#########'
|
||||
print 'Finished!'
|
||||
print '#########'
|
||||
else:
|
||||
print '#########'
|
||||
print 'Failure!'
|
||||
print '#########'
|
49
android-app/misc/other/take_screenshots.sh
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
predefined=1
|
||||
scale=0.51
|
||||
|
||||
# first predefined
|
||||
|
||||
if [ $predefined -eq 1 ]
|
||||
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 -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
|
||||
sleep 3
|
||||
done
|
||||
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 targets=("android-16")
|
||||
|
||||
for target in ${targets[@]}
|
||||
do
|
||||
for density in ${densities[@]}
|
||||
do
|
||||
|
||||
for resolution in ${resolutions[@]}
|
||||
do
|
||||
name="AVD"
|
||||
name="$name$density"
|
||||
name="$name$resolution"
|
||||
name="$name$target"
|
||||
|
||||
$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
|
||||
sleep 3
|
||||
|
||||
done
|
||||
done
|
||||
done
|
19
android-app/misc/other/take_screenshots2.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
predefined=1
|
||||
scale=0.51
|
||||
|
||||
# first predefined
|
||||
|
||||
if [ $predefined -eq 1 ]
|
||||
then
|
||||
declare -a names=("AVD_Nexus_7_by_Google")
|
||||
for name in ${names[@]}
|
||||
do
|
||||
$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
|
||||
sleep 3
|
||||
done
|
||||
fi
|
10
android-app/misc/other/wait_device.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
|
||||
|
||||
print 'Waiting for device...'
|
||||
device = MonkeyRunner.waitForConnection(100, 'emulator-5580')
|
||||
print 'Finished'
|
||||
if device :
|
||||
print 'Success'
|
||||
else :
|
||||
print 'Failure'
|
||||
|
BIN
android-app/misc/res/calculatorpp/01_main_screen_port.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
android-app/misc/res/calculatorpp/01_main_screen_port_sm.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
android-app/misc/res/calculatorpp/02_main_screen_land.png
Normal file
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 49 KiB |
BIN
android-app/misc/res/calculatorpp/04_plot_graph_menu.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
android-app/misc/res/calculatorpp/04_plot_graph_menu_sm.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
android-app/misc/res/calculatorpp/05_graph_screen.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
android-app/misc/res/calculatorpp/05_graph_screen_sm.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
android-app/misc/res/calculatorpp/06_constants_screen.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
android-app/misc/res/calculatorpp/06_constants_screen_sm.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
android-app/misc/res/calculatorpp/07_constant_create_dialog.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
android-app/misc/res/calculatorpp/08_constants_context_menu.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
android-app/misc/res/calculatorpp/09_functions_screen.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
android-app/misc/res/calculatorpp/09_functions_screen_sm.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
android-app/misc/res/calculatorpp/10_history_screen.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
android-app/misc/res/calculatorpp/10_history_screen_sm.png
Normal file
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 32 KiB |
BIN
android-app/misc/res/calculatorpp/12_saved_history_tab.png
Normal file
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 27 KiB |
BIN
android-app/misc/res/calculatorpp/14_about_screen.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
android-app/misc/res/calculatorpp/14_about_screen_sm.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
android-app/misc/res/calculatorpp/15_release_notes_tab.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
android-app/misc/res/calculatorpp/16_help_screen.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
android-app/misc/res/calculatorpp/16_help_screen_sm.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
android-app/misc/res/calculatorpp/17_hints_tab.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
android-app/misc/res/calculatorpp/18_preferences.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
android-app/misc/res/calculatorpp/18_preferences_02.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
android-app/misc/res/calculatorpp/18_preferences_03.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
android-app/misc/res/calculatorpp/18_preferences_sm.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
android-app/misc/res/calculatorpp/plan.png
Normal file
After Width: | Height: | Size: 176 KiB |
BIN
android-app/misc/res/calculatorpp/plan.xcf
Normal file
BIN
android-app/misc/res/icon-green.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
android-app/misc/res/icon-hi-res.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
android-app/misc/res/icon-promo.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
android-app/misc/res/icon.png
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
android-app/misc/res/kb_facebook.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
android-app/misc/res/kb_facebook_icon.png
Normal file
After Width: | Height: | Size: 940 B |
BIN
android-app/misc/res/logo-admob.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
android-app/misc/res/logo-scaled.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
android-app/misc/res/logo-small.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
android-app/misc/res/logo.cdr
Normal file
BIN
android-app/misc/res/logo.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
android-app/misc/res/widget.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
android-app/misc/res/work/Backup_of_logo.cdr
Normal file
BIN
android-app/misc/res/work/header.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
android-app/misc/res/work/header_bg.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
android-app/misc/res/work/header_sm.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
android-app/misc/res/work/heart_original.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
android-app/misc/res/work/icon.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
android-app/misc/res/work/icon_favicon_light_blue.ico
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
android-app/misc/res/work/icon_favicon_light_blue.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
android-app/misc/res/work/icon_favicon_purple.ico
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
android-app/misc/res/work/icon_small.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
android-app/misc/res/work/log11o.psd
Normal file
BIN
android-app/misc/res/work/logo.cdr
Normal file
BIN
android-app/misc/res/work/logo.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
android-app/misc/res/work/logoFULL copy.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
android-app/misc/res/work/logoFULL.pdf
Normal file
BIN
android-app/misc/res/work/logoFULL.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
android-app/misc/res/work/logoFULL_banner.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
android-app/misc/res/work/logoFULL_small.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
android-app/misc/res/work/logo_black.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
android-app/misc/res/work/logo_blue.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
android-app/misc/res/work/logo_light_blue.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
android-app/misc/res/work/logo_purple.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
android-app/misc/res/work/promo_logo.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
android-app/misc/res/work/text_logo.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
android-app/misc/res/work/text_logo_blue.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
android-app/misc/res/work/text_logo_light_blue.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
android-app/misc/res/work/text_logo_light_blue_cpp_forum.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
android-app/misc/res/work/text_logo_purple.png
Normal file
After Width: | Height: | Size: 60 KiB |