summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorPetri Gynther <pgynther@google.com>2009-10-20 16:51:28 -0700
committerChih-Chung Chang <chihchung@google.com>2009-11-25 17:21:40 +0800
commit30055f6830b3d524cfbdfeab6536bb46e390747a (patch)
tree88037c702a6e57e4c49292774768581fcf921d34 /res
parent4d0f30896f412439b92f38bee204766fb5853b1a (diff)
downloadLegacyCamera-30055f6830b3d524cfbdfeab6536bb46e390747a.zip
LegacyCamera-30055f6830b3d524cfbdfeab6536bb46e390747a.tar.gz
LegacyCamera-30055f6830b3d524cfbdfeab6536bb46e390747a.tar.bz2
Camera: Clean up the image/video file naming code
1) Create 'image_file_name_format' string in strings.xml 2) Change createName() routines in Camera.java and VideoCamera.java to use 'image_file_name_format' and 'video_file_name_format', respectively. 3) Change image filenames on SD card to format: IMG_yyyyMMdd_HHmmss.jpg -- e.g. IMG_20091020_120000.jpg (Old format was 'yyyy-MM-dd HH.mm.ss.jpg' which contained undesirable space character in the filename.) 4) Similarly, change video filenames to format: VID_yyyyMMdd_HHmmss.3gp -- e.g. VID_20091020_120000.3gp (Old format was 'video-yyyy-MM-dd-HH-mm-ss.3gp' which was not consistent with the image filename format.)
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 010fda2..1f4d122 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -367,8 +367,11 @@
<!-- Low-memory dialog message -->
<string name="spaceIsLow_content">Your SD card is running out of space. Change the quality setting or delete items from Gallery.</string>
+ <!-- Camera format string for new image files. Passed to java.text.SimpleDateFormat. -->
+ <string name="image_file_name_format" translatable="false">"'IMG'_yyyyMMdd_HHmmss"</string>
+
<!-- Video Camera format string for new video files. Passed to java.text.SimpleDateFormat. -->
- <string name="video_file_name_format" translatable="false">"'video'-yyyy-MM-dd-HH-mm-ss"</string>
+ <string name="video_file_name_format" translatable="false">"'VID'_yyyyMMdd_HHmmss"</string>
<!-- The messsage shown when video record reaches size limit. -->
<string name="video_reach_size_limit">Size limit reached.</string>