Code example for RemoteException

Methods: i, getMessage

0
        int state = -1;
 
        try { 
            state = capabilitiesPeer.getState();
        } catch (RemoteException e) {
            Log.i(TAG, e.getMessage(), e);
        } 
        return state;
    } 
 
    /** 
     * @see Capabilities#hasCapabilities(String) 
     */ 
     
    public boolean hasCapabilities(String connection) {
        if (connection == null) {
            throw new IllegalArgumentException(
                    "The connection argument is null"); 
        } 
 
        if (getState() != STATE_ACTIVE) {