Development‎ > ‎

Android

Update Project, Make a Debug Build, and Run in Emulator
  • # example: https://github.com/superarts/AwesomeTimer
  • android update project --name AwesomeTimer --target android-4 --path . 
  • # make sure sdk.dir is right in local.properties
  • cd ~/prj/android/AwesomeTimer
  • ant debug
  • # uninstall if it already exists
  • adb uninstall org.superarts.android.AwesomeTimer
  • adb -s emulator-5554 install bin/AwesomeTimer-debug.apk

Create Key, Make Release Build, and Run
  • keytool -genkey -v -keystore android-relealse-key.keystore -alias superarts -keyalg RSA -keysize 2048 -validity 36500
  • vim build.properties
  • # key.store=../public/key/android-release-key.keystore
  • # key.alias=superarts
  • ant release
  • adb uninstall org.superarts.android.AwesomeTimer
  • adb install bin/AwesomeTimer-release.apk

Switch Orientation
  • Control+F11/F12


Comments