Back to project page apps-android-commons.
The source code is released under:
Apache License
If you think the Android project apps-android-commons listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.wikimedia.commons.auth; // w w w .ja v a 2s . c om import android.app.*; import android.content.*; import android.os.*; public class WikiAccountAuthenticatorService extends Service{ private static WikiAccountAuthenticator wikiAccountAuthenticator = null; @Override public IBinder onBind(Intent intent) { if (!intent.getAction().equals(android.accounts.AccountManager.ACTION_AUTHENTICATOR_INTENT)) { return null; } if(wikiAccountAuthenticator == null) { wikiAccountAuthenticator = new WikiAccountAuthenticator(this); } return wikiAccountAuthenticator.getIBinder(); } }