Wendigovo StackDump

Command line Android SDK usage

/home/wendigo/usr/android-sdk/platform-tools/adb devices

Project preparation:

wendigo@miskatonic:~/progs/android$ android create project --target 2 --name reprism --path ./rePrism --activity MainActivity --package cz.wendigo.reprism

#to list available targets and devices:
wendigo@miskatonic:~$ android list

Prepares project folder with initial Activity and directory structure.

Compilation and install:

# build and install (to device [if connected] or emulator)
ant install

# or
ant debug
adb install bin/RePrism-debug.apk

# force device install:
adb -d install bin/RePrism-debug.apk

Publishing

Creation of key:

wendigo@miskatonic:~/progs/android$ keytool -genkey -v -keystore my-release-key.keystore -alias play-online-siesta -keyalg RSA -keysize 2048 -validity 20000

Add key info to project build.properties:

wendigo@miskatonic:~/progs/android/rePrism$ vim build.properties
key.store=../my-release-key.keystore
key.alias=play-online-siesta

Build release!

wendigo@miskatonic:~/progs/android/rePrism$ ant release

Release APK will be placed in bin/ directory of the project.