Code example for Messenger

0
            } catch (RemoteException e) { 
            } 
        } 
    }; 
     
    private final Messenger mMessenger = new Messenger(mHandler);
     
    public MessengerService() { 
    } 
 
    @Override 
    public IBinder onBind(Intent intent) {
        return mMessenger.getBinder();
    } 
}