@Override public void onServiceConnected(ComponentName name, IBinder service) { clientJobService = IJobService.Stub.asInterface(service); if (clientJobService == null) { emptyCallback(clientCallback, jobId); stopSession(); return; } try { clientJobService.startJob(jobParams); } catch (RemoteException e) { forceFinishJob(); e.printStackTrace(); } }