Android Client: Difference between revisions
(dummy, so xpd259 can fill it with content) |
(quick and dirty guide to getting the android client working) |
||
Line 1: | Line 1: | ||
== The Android Client == |
== The Android Client == |
||
=== Some assumptions of this guide === |
|||
* you have eclipse and all the android SDK installed and working (if not try [https://github.com/AdnanHodzic/android-sdk-installer 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] |
|||
<nowiki> |
|||
[[mediagoblin.plugins.geolocation]] |
|||
[[mediagoblin.plugins.api]] |
|||
[[mediagoblin.plugins.oauth]] |
|||
</nowiki> |
|||
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 |
|||
[[https://lh4.googleusercontent.com/-zW-mhlCvYTg/UTnbgckRvGI/AAAAAAABEUk/MAtWlwrDwmA/s709/Screenshot_2013-03-08-12-36-44.png your client should look something like this]] |
|||
--[[User:Xpd259|Xpd259]] ([[User talk:Xpd259|talk]]) 07:53, 8 March 2013 (EST) |
Revision as of 12:53, 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
[your client should look something like this]