desc:录像名称格式,targetSdk版本

main
xiaowusky 2 years ago
parent 70127cd262
commit 5cfa300050

@ -13,8 +13,8 @@ project.ext {
versions = [ versions = [
compileSdkVersion : 33, compileSdkVersion : 33,
buildToolsVersion : "33.0.3", buildToolsVersion : "33.0.3",
minSdkVersion : 30, minSdkVersion : 28,
targetSdkVersion : 30, targetSdkVersion : 28,
versionCode : 1, versionCode : 1,
versionName : "1.0", versionName : "1.0",
jvmTarget : "1.8", jvmTarget : "1.8",

@ -197,7 +197,7 @@ public class CameraHelper {
} }
// Create a media file name // Create a media file name
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.CHINA); SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss", Locale.CHINA);
String timeStamp = format.format(time); String timeStamp = format.format(time);
String endTimeStamp = format.format(time + duration); String endTimeStamp = format.format(time + duration);
File mediaFile; File mediaFile;

Loading…
Cancel
Save