Back to project page hubblog.
The source code is released under:
MIT License
If you think the Android project hubblog 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 com.github.mobile.Accounts; /*from w w w . j a va 2 s.co m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; import static android.accounts.AccountManager.ACTION_AUTHENTICATOR_INTENT; /** * Created with IntelliJ IDEA. * User: donski * Date: 10/12/13 * Time: 20:15 */ public class AccountAuthenticatorService extends Service { private static AccountAuthenticator AUTHENTICATOR; public IBinder onBind(Intent intent) { return intent.getAction().equals(ACTION_AUTHENTICATOR_INTENT) ? getAuthenticator().getIBinder() : null; } private AccountAuthenticator getAuthenticator() { if (AUTHENTICATOR == null) AUTHENTICATOR = new AccountAuthenticator(this); return AUTHENTICATOR; } }