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.
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:
Intent intent = new Intent("com.zegoggles.gist.PICK");
intent.putExtra("load_gist", false); // load gist content, defaults to true
startActivityForResult(intent, 0)
startActivityForResult(new Intent("com.zegoggles.gist.UPLOAD")
.putExtra(Intent.EXTRA_TEXT, "text123")
.putExtra("public", false)
.putExtra("description", "testing gist upload via intent"), 0);
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).
See LICENSE. Post it graphic by christianalm.