Android gist API client written in Scala
Switch branches/tags
Nothing to show
Clone or download
Latest commit 04949cb Feb 21, 2012
Type Name Latest commit message Commit time
Failed to load latest commit information.
notes Add missing notes Dec 19, 2011
project New plugin repo Feb 20, 2012
src Redirect url Dec 19, 2011
tests/src/main Rename May 31, 2011
.gitignore 0.1.2 Jun 2, 2011
LICENSE Slap on LICENSE May 17, 2011
NOTICE added NOTICE Jun 5, 2011 don't need project prefix Dec 20, 2011



Open source Android gist API client written in Scala.

The Android app uses the new github api to provide a "send to gist" feature for most applications which have a "Send" or "Share" menu.

Check the following screenshot to get an idea of the flow (this example uses the ColorNote Notepad app)


By default gists are created anonymously - you can add your github account using Android's "Accounts & Sync" settings or follow the instructions in the gist app itself.

With an associated account you also have the ability to edit existing gists - Use "Load gist" from the menu, make changes and upload it again.

Usage from other apps

If your are developing an Android app and want to make use of the gist api you can do so with intents. At the moment there are two actions exposed:

picking/loading a gist

Intent intent = new Intent("com.zegoggles.gist.PICK");
intent.putExtra("load_gist", false); // load gist content, defaults to true
startActivityForResult(intent, 0)

uploading a gist

startActivityForResult(new Intent("com.zegoggles.gist.UPLOAD")
    .putExtra(Intent.EXTRA_TEXT, "text123")
    .putExtra("public", false)
    .putExtra("description", "testing gist upload via intent"), 0);

Building from source

You need sbt (simple-build-tool, >= 0.11.2 ) in order to build the project,

$ export ANDROID_HOME=/path/to/sdk # or ANDROID_SDK_{HOME,ROOT}
$ sbt android:package-debug

To run tests:

$ sbt test

Pull requests welcome, especially the design needs some love (hint, hint).

Credits / License

See LICENSE. Post it graphic by christianalm.