projects/moments/app/src/main/java/io/v/moments/model/BitMapper.java
/**
     * Read the raw photo, and store it scaled down to full size of display and
     * a smaller thumbnail.
     */
Read the raw photo, and store it scaled down to full size of display and
a smaller thumbnail.
Read the raw photo and store it scaled down to full size of display and a smaller thumbnail .
public void dealWithCameraResult(
            final ObservedList<Moment> moments, final Moment moment) {
        final int index = moment.getOrdinal();
        Bitmap full = readScaled(makeCameraPhotoFile(index));
        writeBitmap(
                makeFileName(index, Kind.LOCAL, Style.THUMB),
                makeThumb(full));
        mHandler.post(signalChange(moments, moment));
        if (Config.DO_FULL_SIZE_TOO) {
            writeBitmap(makeFileName(index, Kind.LOCAL, Style.FULL), full);
            mHandler.post(signalChange(moments, moment));
        }
    }
public void dealWithCameraResult ( final ObservedList < Moment > moments , final Moment moment ) { final int index = moment . getOrdinal ( ) ; Bitmap full = readScaled ( makeCameraPhotoFile ( index ) ) ; writeBitmap ( makeFileName ( index , Kind . LOCAL , Style . THUMB ) , makeThumb ( full ) ) ; mHandler . post ( signalChange ( moments , moment ) ) ; if ( Config . DO_FULL_SIZE_TOO ) { writeBitmap ( makeFileName ( index , Kind . LOCAL , Style . FULL ) , full ) ; mHandler . post ( signalChange ( moments , moment ) ) ; } }
Read the raw photo, and store it scaled down to full size of display and
 a smaller thumbnail.
Read the raw photo and store it scaled down to full size of display and a smaller thumbnail .
// Use the following to read the raw image for some reason, e.g. // full scrolling (raw image too big to display on phone w/o scroll). // Bitmap full = MediaStore.Images.Media.getBitmap //    (mContext.getContentResolver(), uri);