The Android Client
Some assumptions of this guide
- you have eclipse and all the android SDK installed and working (if not try android-sdk-installer )
- you have a working media goblin instance
- you know how to work eclipse and android SDK
1st thing is to enable the correct things in Media Goblin, edit your media_local.ini file, mine is found /srv/mediagoblin/mediagoblin/mediagobin_local.ini
# place plugins here---each in their own subsection of [plugins]. see # documentation for details. [plugins] [[mediagoblin.plugins.geolocation]] [[mediagoblin.plugins.api]] [[mediagoblin.plugins.oauth]]
and restart the media goblin Init scripts
Building the client
Then we need to build our android client but! before we do that we need some Oauth stuff visit
changing details for your site, fill out the forms as a private with no redirect URL and either keep this page open or print it to PDF then we need the android client code so clone the git repo with the following
#git clone git://github.com/joar/mediagoblin-android.git Cloning into 'mediagoblin-android'... remote: Counting objects: 107, done. remote: Compressing objects: 100% (47/47), done. remote: Total 107 (delta 36), reused 107 (delta 36) Receiving objects: 100% (107/107), 317.13 KiB | 82 KiB/s, done. Resolving deltas: 100% (36/36), done.
import in to eclipse and edit the resource file
and change the secret key and client id already filled in with your own and then build on your client, And test using your connected phone or virtual device.
Then on your device it will now load up media goblin and ask for a URL for your media goblin instance fill this in, and then login using your username and password now any media your from the galley, will have a share to media goblin icon, after giving your media a title and such a quick upload will silently add it to the upload sync and moments later it will be on your gallery
sources Orginal Blogpost