Code example for ResourceCursorAdapter

Methods: getCursor

0
 
    } 
 
    @Override 
    public int getCount() { 
        if (getCursor() == null) {
            return 0; 
        } 
        return getCursor().getCount();
    } 
 
    @Override 
    public void bindView(View view, Context context, Cursor cursor) {
        int imageId = cursor.getInt(cursor
                .getColumnIndexOrThrow(Images.Media._ID));
        Uri imageUri = mImageUriMap.get(imageId);
        if (imageUri == null) {
            imageUri = ContentUris.withAppendedId(
                    Images.Media.EXTERNAL_CONTENT_URI, imageId);
            mImageUriMap.append(imageId, imageUri);
Stop searching for code, let great code find you!  Add Codota to your java IDE