IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Android

Prerequisits

Cal donar d'alta l'aplicació a cada xarxa social. Exemples amb captures de pantalla a:

https://code.google.com/p/socialauth-android/wiki/GettingStarted

És possible que si heu fet per exemple Social Login la app ja la tingueu registrada.

Permisos

Afegir permisos al fitxer Manifest:

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>

Afegir Config changes attributes

If your app uses both portrait and landscape modes , we recommend you to use follow settings in activity tag.

android:configChanges="keyboardHidden|orientation"

SDK

Step 3 : Integrating SDK

  • Create your Android project.
  • Add socialauth-android-3.2.jar and socialauth4.4.jar from dist and libs folder of SDK zip file to libs folder of you app.
  • If you are using ADT17 or more then you need to rename the lib folder in your app to libs. Your app will add the jar to build path automatically if you are using ADT 17.
  • Add images of providers to drawables. You can also take images from apps in examples folder of SDK zip file.
  • Add oauth_consumer.properties file from assets folder of SDK zip file in assets folder of your application.
  • Move to your project properties -> Java Build Path -> Order and Export. Move the socialauth libs on top and export. Check examples in case you find issues else you may get noClassDefFound Error.

Aplicacions exemple

sharebuttonexample

https://code.google.com/p/socialauth-android/wiki/sharebuttonexample

sharebarexample

https://code.google.com/p/socialauth-android/wiki/sharebarexample


customui

https://code.google.com/p/socialauth-android/wiki/customui

Documentació

Enllaços externs

https://code.google.com/p/socialauth/