Skip to content

Instantly share code, notes, and snippets.

@astagi
Created August 5, 2012 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astagi/3265017 to your computer and use it in GitHub Desktop.
Save astagi/3265017 to your computer and use it in GitHub Desktop.
Android scripts for developing Android apps under Linux without using Eclipse
1. Install Apache Ant (http://ant.apache.org/)
2. Download the Android SDK from http://developer.android.com/sdk/index.html if you don't have it yet
3. Extract the package somewhere (I placed it in my home directory /home/andrea/android-sdk-linux_x86)
4. Set ANDROID_SDK environment variable with the path where you placed the SDK folder
5. Run buildall.sh to build the .apk
6. Run run.sh to launch Turpial on your device
7. In case you need to restart adb, run restartadb.sh
#!/bin/bash
ant clean
$ANDROID_SDK/tools/android update project --path . --target 8
ant debug
#!/bin/bash
sudo $ANDROID_SDK/platform-tools/adb kill-server
sudo $ANDROID_SDK/platform-tools/adb start-server
#!/bin/bash
$ANDROID_SDK/platform-tools/adb install -r ./bin/TurpialActivity-debug.apk
$ANDROID_SDK/platform-tools/adb shell am start -n org.turpial.mobile/org.turpial.mobile.TurpialActivity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment