Code example for File

Methods: renameTo

0
		} 
	} 
	 
	private void moveFile(String file) {
		/* this is a hack to save the file as the specified name */ 
		File f = new File (this.recording);
		f.renameTo(new File("/sdcard" + file));
	} 
	 
	protected void stopRecording(){ 
		try{ 
			if((recorder != null)&&(isRecording))
			{ 
				isRecording = false;
				recorder.stop();
		        recorder.release(); 
			} 
			moveFile(saveFile);
		} 
		catch (Exception e)
		{