Back to project page NerdzMessenger.
The source code is released under:
GNU General Public License
If you think the Android project NerdzMessenger 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 eu.nerdz.app.authenticator; // w w w. ja va 2 s. c o m import android.accounts.AccountManager; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; public class NerdzAuthenticatorService extends Service { private static final String TAG = "NdzAuthSvc"; private NerdzAuthenticator mNerdzAuthenticator; public IBinder onBind(Intent intent) { Log.i(TAG, "onBind(" + intent + ")"); if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) return this.mNerdzAuthenticator.getIBinder(); return null; } public void onCreate() { Log.i(TAG, "onCreate()"); if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "NERDZ Authentication Service started."); this.mNerdzAuthenticator = new NerdzAuthenticator(this); } public void onDestroy() { Log.i(TAG, "onDestroy()"); if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "NERDZ Authentication Service stopped."); } }