Skip to content

Instantly share code, notes, and snippets.

@chitomanansala
Created October 31, 2012 19:37
Show Gist options
  • Save chitomanansala/3989316 to your computer and use it in GitHub Desktop.
Save chitomanansala/3989316 to your computer and use it in GitHub Desktop.
Eclipse for Phonegap Applications
ECLIPSE
- install the latest Eclipse Classic (64 bit version) for Mac (http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-macosx-cocoa-x86_64.tar.gz)
- install the Android SDK for Mac (http://dl.google.com/android/android-sdk_r20.0.3-macosx.zip)
remember the directory path of your Android SDK
- after you install the Android SDK, run android sdk under the tools directory of your Android path. Install the appropriate platforms and packages
- run eclipse. install the android sdk plugin (http://developer.android.com/sdk/installing/installing-adt.html)
Building the Phonegap App
- run the build script
- open the project thru your eclipse
- build the project
- connect your Android Device
- Right Click the Project, Click Run as Android Application. Sometimes it necessary to uninstall the old one especially if it is not created in the same device
To send it for distribution
1. Right click on <Project Name> in the Package Explorer pane
2. Select Android Tools > Export Signed Application Package
3. Click Next
4. Select Use Existing Keystore
5. Click Browse...
6. Select wrapped/docs/tripcase-release-key.keystore and click Open
7. Type <super secret password> into the Password field
8. Click Next
9. Select Use Existing Key
10. Select <Project Name> in the Alias field
11. Type <super secret password> into the Password field
12. Click Next
13. Select a destination for the file
14. Click Finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment