/** Hook method called when the last client unbinds from the Service. */ @Override public void onDestroy() { super.onDestroy(); // Shutdown the RequestHandler. // TODO -- you fill in here. }
/** Factory method that returns the underlying IBinder associated with the Request Messenger. */ @Override public IBinder onBind(Intent intent) { super.onBind(intent); // Return the iBinder associated with the Request Messenger. return mRequestMessenger.getBinder(); }