projects/moments/app/src/main/java/io/v/moments/ux/MainActivity.java
/**
     * Before calling this, must have permission to read/write to storage, to
     * read/write photo data. Don't need camera permission, since a new activity
     * is started to actually take the photo.
     */
Before calling this, must have permission to read/write to storage, to
read/write photo data. Don't need camera permission, since a new activity
is started to actually take the photo.
Before calling this must have permission to read / write to storage to read / write photo data . Don ' t need camera permission since a new activity is started to actually take the photo .
private void takePhoto() {
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        mCurrentPhotoId = Id.makeRandom();
        Integer ordinal = mLocalMoments.size() + 1;
        Uri uri = mBitMapper.getCameraPhotoUri(ordinal);
        intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
        startActivityForResult(intent, RequestCode.CAPTURE_IMAGE);
    }
private void takePhoto ( ) { Intent intent = new Intent ( MediaStore . ACTION_IMAGE_CAPTURE ) ; mCurrentPhotoId = Id . makeRandom ( ) ; Integer ordinal = mLocalMoments . size ( ) + 1 ; Uri uri = mBitMapper . getCameraPhotoUri ( ordinal ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , uri ) ; startActivityForResult ( intent , RequestCode . CAPTURE_IMAGE ) ; }
Before calling this, must have permission to read/write to storage, to
 read/write photo data.
Before calling this must have permission to read / write to storage to read / write photo data .