【发布时间】:2012-02-12 11:13:07
【问题描述】:
我正在用 java 创建一个记录器应用程序。我想根据当前时间设置文件名。在一个 android 应用程序中,我已经看到它像
import android.text.format.Time;
public CallRecorder(String filename,int sample_rate)
{
if (filename == null)
{
Time t = new Time();
t.setToNow();
filename = t.format2445(); // Create filename from current date.
}
在java中我应该使用什么包?或者怎么做?
【问题讨论】:
-
你的 Recorder 是为什么平台编写的?
-
平台是什么意思?我使用 Windows,并且该应用程序的目标是成为桌面应用程序。
-
好吧,我有点困惑,你给了一个工作变体......对你不起作用......所以我问:)