Added Commons AccountManager (Authentication Provider!)

Also updated version of java-mwapi to support cookie based auth
This commit is contained in:
YuviPanda 2012-10-15 00:41:14 +05:30
parent d59b1700c8
commit 802e6aa9ed
8 changed files with 227 additions and 38 deletions

View file

@ -8,6 +8,9 @@
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.ACCOUNT_MANAGER"/>
<application
android:name=".CommonsApplication"
@ -15,7 +18,7 @@
android:label="@string/app_name"
android:theme="@style/Theme.Commons" >
<activity
android:name=".LoginActivity"
android:name=".auth.LoginActivity"
android:label="@string/title_activity_login"
android:theme="@style/NoTitle" >
</activity>
@ -24,11 +27,27 @@
android:label="@string/title_activity_share" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<service android:name="UploadService"></service>
<service android:name="UploadService" >
</service>
<service
android:name=".auth.WikiAccountAuthenticatorService"
android:exported="true"
android:process=":auth" >
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
</application>
</manifest>