Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Android gist API client written in Scala

branch: master

New plugin repo

latest commit 04949cbcac
Jan Berkel authored February 20, 2012
Octocat-spinner-32 notes
Octocat-spinner-32 project New plugin repo February 20, 2012
Octocat-spinner-32 src Redirect url December 19, 2011
Octocat-spinner-32 tests Rename May 31, 2011
Octocat-spinner-32 .gitignore 0.1.2 June 02, 2011
Octocat-spinner-32 LICENSE Slap on LICENSE May 17, 2011
Octocat-spinner-32 NOTICE added NOTICE June 05, 2011
Octocat-spinner-32 don't need project prefix December 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.

Something went wrong with that request. Please try again.