1 of 15

Tips, Tools, and Practices for Professional Android Development

Jordan Petersen

-

TEAM Software

2 of 15

eHub

3 of 15

4 of 15

Dev Mode

5 of 15

SQLite Browser

6 of 15

Pulling the database

adb shell "run-as org.ehub1100.eh.ui chmod -R 777 /data/data/org.ehub1100.eh.ui/databases"

adb shell "mkdir -p /sdcard/tempDB“

adb shell "cp -r /data/data/org.ehub1100.eh.ui/databases/ /sdcard/tempDB/."

adb pull sdcard/tempDB/ desktop

adb shell "rm -r /sdcard/tempDB/*"

7 of 15

Other Simple Scripts

8 of 15

Install APK

PKG_NAME=org.ehub1100.eh.ui

MAIN_ACTIVITY=/.LoginActivity

adb uninstall $PKG_NAME

echo Enter APK path:

read APK_PATH

echo Installing new APK…

adb install $APK_PATH

adb shell am start -a android.intent.action.MAIN -n $PKG_NAME$MAIN_ACTIVITY

9 of 15

Clear app data

adb shell pm clear org.ehub1100.eh.ui

10 of 15

11 of 15

Launch Genymotion

VBOXManage list vms

/Applications/Genymotion.app/Contents/MacOS/player start --vm-name "Google Nexus 5 - 5.1.0 - API 22 - 1080x1920";

12 of 15

Consistency with custom views

13 of 15

TimeSelectorView

14 of 15

15 of 15