Back to project page Android_Sunshine_Udacity.
The source code is released under:
MIT License
If you think the Android project Android_Sunshine_Udacity 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.example.talonso.sunshine.sync; //w ww. ja v a2 s . c o m import android.app.Service; import android.content.Intent; import android.os.IBinder; /** * The service which allows the sync adapter framework to access the authenticator. */ public class SunshineAuthenticatorService extends Service { // Instance field that stores the authenticator object private SunshineAuthenticator mAuthenticator; @Override public void onCreate() { // Create a new authenticator object mAuthenticator = new SunshineAuthenticator(this); } /* * When the system binds to this Service to make the RPC call * return the authenticator's IBinder. */ @Override public IBinder onBind(Intent intent) { return mAuthenticator.getIBinder(); } }