mContext = context; mCallback = callback; Intent intent = new Intent(mContext, PrintSpoolerService.class); mContext.bindService(intent, this, 0);
if (mSpooler != null) { mContext.unbindService(this); }
return mSpooler;
mSpooler = ((PrintSpoolerService.PrintSpooler) service).getService(); if (mSpooler != null) { mCallback.run(); }
/* do nothing - we are in the same process */