Code example for Uri

Methods: equals

0
 
    public void setSelectedGroup(Uri groupUri) {
        mSelectedGroupUri = groupUri;
    } 
 
    private boolean isSelectedGroup(Uri groupUri) {
        return mSelectedGroupUri != null && mSelectedGroupUri.equals(groupUri);
    } 
 
    public Uri getSelectedGroup() {
        return mSelectedGroupUri;
    } 
 
    @Override 
    public int getCount() { 
        return mCursor == null ? 0 : mCursor.getCount();
    } 
 
    @Override 
    public long getItemId(int position) {
        return position;