Code example for RemoteException

Methods: getMessage, toString

0
            // that it can be found later. do null checking for badly behaving 
            // ContentResolvers 
            return ((results == null || results.length == 0 || results[0] == null)
                            ? null : results[0].uri);
        } catch (RemoteException e) {
            Log.e(LOG_TAG, String.format("%s: %s", e.toString(), e.getMessage()));
            return null; 
        } catch (OperationApplicationException e) {
            Log.e(LOG_TAG, String.format("%s: %s", e.toString(), e.getMessage()));
            return null; 
        } 
    } 
 
    /** 
     * Returns the list of created Uris. This list should not be modified by the caller as it is 
     * not a clone. 
     */ 
   public ArrayList<Uri> getCreatedUris() {
        return mCreatedUris;
    } 
}