Back to project page inotes.
The source code is released under:
GNU General Public License
If you think the Android project inotes 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.codeminders.inotes.auth; // www .j av a2 s.c o m import android.app.Service; import android.content.Intent; import android.os.IBinder; public class AuthenticationService extends Service { private static Authenticator accountAuthenticator = null; public AuthenticationService() { super(); } public IBinder onBind(Intent intent) { IBinder ret = null; if (intent.getAction().equals(android.accounts.AccountManager.ACTION_AUTHENTICATOR_INTENT)) { ret = getAuthenticator().getIBinder(); } return ret; } private Authenticator getAuthenticator() { if (accountAuthenticator == null) { accountAuthenticator = new Authenticator(this); } return accountAuthenticator; } }