Created
August 5, 2012 14:04
-
-
Save astagi/3265017 to your computer and use it in GitHub Desktop.
Android scripts for developing Android apps under Linux without using Eclipse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ant clean | |
$ANDROID_SDK/tools/android update project --path . --target 8 | |
ant debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo $ANDROID_SDK/platform-tools/adb kill-server | |
sudo $ANDROID_SDK/platform-tools/adb start-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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