Skip to content

Instantly share code, notes, and snippets.

@abeluck
Created August 9, 2012 22:33
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 abeluck/3308647 to your computer and use it in GitHub Desktop.
Save abeluck/3308647 to your computer and use it in GitHub Desktop.
Eclipse-less Android Development

Eclipse-less Android Development

Because eclipse blows at everything except editing Java.

App Deployment

Create a script deploy.sh in your source directory like so:

adb uninstall info.guardianproject.gpg
adb install bin/GnuPrivacyGuard-debug.apk
adb shell am start -n info.guardianproject.gpg/info.guardianproject.gpg.GnuPrivacyGuard

Unit Testing

TODO

Native code debugging

  1. Edit your AndroidManifest.xml

    Add the android:debuggable="true" attribute to your <application ..> tag.

    Example before:

     <application android:icon="@drawable/icon" android:label="@string/app_name">
    

    After:

     <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
    
  2. Enable debug build in Android.mk

    Add APP_OPTIM := debug to your jni/Android.mk file.

Troubleshooting

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment