Code example for ServiceConnection

Methods: onServiceConnected

0
        } 
         
        public void onServiceConnected(ComponentName className, android.os.IBinder service) {
            sService = IDemoService.Stub.asInterface(service);
            if (mCallback != null) {
                mCallback.onServiceConnected(className, service);
            } 
        } 
         
        public void onServiceDisconnected(ComponentName className) {
            if (mCallback != null) {
                mCallback.onServiceDisconnected(className);
            } 
            sService = null;
        } 
    } 
     
    private static void logMsg(String log) {
        Log.e("ServiceUtils", log);
	} 
Contextual code suggestions in your IDE  Get Codota for Java