Code example for ServiceConnection

Methods: onServiceConnected

0
 
		@Override 
		public void onServiceConnected(final ComponentName className, final android.os.IBinder service) {
			sService = IMediaPlaybackService.Stub.asInterface(service);
			if (mCallback != null) {
				mCallback.onServiceConnected(className, service);
			} 
		} 
 
		@Override 
		public void onServiceDisconnected(final ComponentName className) {
			if (mCallback != null) {
				mCallback.onServiceDisconnected(className);
			} 
			sService = null;
		} 
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java