Back to project page Rhybudd.
The source code is released under:
GNU General Public License
If you think the Android project Rhybudd 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 net.networksaremadeofstring.rhybudd; /* ww w. ja v a 2 s . c o m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; public class AuthenticatorService extends Service { // Instance field that stores the authenticator object private Authenticator mAuthenticator; @Override public void onCreate() { try { // Create a new authenticator object mAuthenticator = new Authenticator(this); } catch (Exception e) { mAuthenticator = null; } } /* * When the system binds to this Service to make the RPC call * return the authenticator's IBinder. */ @Override public IBinder onBind(Intent intent) { if(null != mAuthenticator) { return mAuthenticator.getIBinder(); } else { return null; } } }