Slrtce/app/src/main/java/com/sssa/slrtce/misc/utils/Helper.java
/**
     * Create Image File and save in storage when user click by camera
     * @return
     */
Create Image File and save in storage when user click by camera
@return
Create Image File and save in storage when user click by camera @return
public static File createImageFile(){
        String imageFileName = "JPEG_" + now() + "_";
        File folder = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + "/slrtce/"); 
        File image = null;
        try {
            if (!folder.exists()){
                folder.mkdirs();
            }
            image = File.createTempFile(
                    imageFileName,  
                    ".jpg",         
                    folder      
            );
            setImagePath(image.getAbsolutePath());
        } catch (IOException e) {
            e.printStackTrace();
        }
        return image;
    }
public static File createImageFile ( ) { String imageFileName = "JPEG_" + now ( ) + "_" ; File folder = new File ( Environment . getExternalStoragePublicDirectory ( Environment . DIRECTORY_PICTURES ) + "/slrtce/" ) ; File image = null ; try { if ( ! folder . exists ( ) ) { folder . mkdirs ( ) ; } image = File . createTempFile ( imageFileName , ".jpg" , folder ) ; setImagePath ( image . getAbsolutePath ( ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return image ; }
Create Image File and save in storage when user click by camera
 @return
Create Image File and save in storage when user click by camera @return
// Create an image file name //location // prefix // suffix // directory