framework/src/org/apache/cordova/CameraLauncher.java
/**
     * Create a file in the applications temporary directory based upon the supplied encoding.
     *
     * @param encodingType of the image to be taken
     * @return a File object pointing to the temporary picture
     */
Create a file in the applications temporary directory based upon the supplied encoding.
@param encodingType of the image to be taken
@return a File object pointing to the temporary picture
Create a file in the applications temporary directory based upon the supplied encoding . @param encodingType of the image to be taken @return a File object pointing to the temporary picture
private File createCaptureFile(int encodingType) {
        File photo = null;
        if (encodingType == JPEG) {
            photo = new File(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity()), ".Pic.jpg");
        } else if (encodingType == PNG) {
            photo = new File(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity()), ".Pic.png");
        } else {
            throw new IllegalArgumentException("Invalid Encoding Type: " + encodingType);
        }
        return photo;
    }
private File createCaptureFile ( int encodingType ) { File photo = null ; if ( encodingType == JPEG ) { photo = new File ( DirectoryManager . getTempDirectoryPath ( this . cordova . getActivity ( ) ) , ".Pic.jpg" ) ; } else if ( encodingType == PNG ) { photo = new File ( DirectoryManager . getTempDirectoryPath ( this . cordova . getActivity ( ) ) , ".Pic.png" ) ; } else { throw new IllegalArgumentException ( "Invalid Encoding Type: " + encodingType ) ; } return photo ; }
Create a file in the applications temporary directory based upon the supplied encoding.
Create a file in the applications temporary directory based upon the supplied encoding .