Code example for Time

Methods: format2445setToNow

	// Existing files are silently overwritten! 
	public CallRecorder(String filename,int sample_rate)
		if (filename == null)
			Time t = new Time();
			filename = t.format2445(); // Create filename from current date.
		// Make sure directory exists. 
		File dir = new File("/sdcard/Sipdroid_Recordings/");
		// If this fails, all of the other calls just silently return immediately. 
		callWav = new WavWriter("/sdcard/Sipdroid_Recordings/" + filename + ".wav",sample_rate);
	// Write data received from the internet. 
	public void writeIncoming(short[] buffer, int offs, int len)