Code example for RemoteException

Methods: e, getMessage

0
    public int getState() { 
        int state;
        try { 
            state = watcherInfoSubscriberPeer.getState();
        } catch (RemoteException e) {
            Log.e(TAG, e.getMessage(), e);
            state = -1;
        } 
        return state;
    } 
 
    public void serviceClosed(ManagableConnection connection) {
        Log.d(TAG, "serviceClosed#started");
        removeRemoteListener(); 
        connection.removeServiceCloseListener(this);
        done.set(true);
        Log.d(TAG, "serviceClosed#ended");
    } 
     
    private void removeRemoteListener() { 
        try {