Android Client: Difference between revisions

From GNU MediaGoblin Wiki
Jump to navigation Jump to search
m (removed screen shot)
m (added my blog url as source)
 
Line 54: Line 54:




sources

[http://www.xpd259.co.uk/2013/03/android-and-media-goblin.html Orginal Blogpost]



--[[User:Xpd259|Xpd259]] ([[User talk:Xpd259|talk]]) 07:53, 8 March 2013 (EST)
--[[User:Xpd259|Xpd259]] ([[User talk:Xpd259|talk]]) 07:53, 8 March 2013 (EST)

Latest revision as of 13:27, 8 March 2013

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]]
 


then run

./bin/gmg dbupdate 

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

http://media.example.com/oauth/client/register 

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

mediagoblin/src/org/mediagoblin/android/client/NetworkUtilities.java 

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

--Xpd259 (talk) 07:53, 8 March 2013 (EST)