String fileName = "GpsLog_" + cal.get(Calendar.YEAR) + "-" + prefixWithZero(month) + "-" + prefixWithZero(day)
+ "_" + prefixWithZero(hour) + "." + prefixWithZero(minute) + "." + prefixWithZero(second) + ".txt";
try {
FileConnection fileConn = (FileConnection) Connector.open("file:///" + Options.getInstance().rootName
+ IOTool.NMEA_LOGS_DIR + "/" + fileName, Connector.WRITE);
fileConn.create();
return fileConn.openDataOutputStream();
} catch (IOException e) {
CloudGps.setError(e);
}
return null;