framework/src/org/apache/cordova/AudioPlayer.java
/**
     * Save temporary recorded file to specified name
     *
     * @param file
     */
Save temporary recorded file to specified name
@param file
Save temporary recorded file to specified name @param file
public void moveFile(String file) {
        /* this is a hack to save the file as the specified name */
        File f = new File(this.tempFile);
        if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
            f.renameTo(new File(Environment.getExternalStorageDirectory().getAbsolutePath()
                    + File.separator + file));
        } else {
            f.renameTo(new File("/data/data/" + handler.cordova.getActivity().getPackageName() + "/cache/" + file));
        }
    }
public void moveFile ( String file ) { /* this is a hack to save the file as the specified name */ File f = new File ( this . tempFile ) ; if ( Environment . getExternalStorageState ( ) . equals ( Environment . MEDIA_MOUNTED ) ) { f . renameTo ( new File ( Environment . getExternalStorageDirectory ( ) . getAbsolutePath ( ) + File . separator + file ) ) ; } else { f . renameTo ( new File ( "/data/data/" + handler . cordova . getActivity ( ) . getPackageName ( ) + "/cache/" + file ) ) ; } }
Save temporary recorded file to specified name
 @param file
Save temporary recorded file to specified name @param file