本文介绍了生成的位图的时间戳 - Android电子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在那里我已经从网上下载一个图像文件的应用程序,我保存外部存储这个文件。
I have an app where I have downloaded an image file from the web and I save this file in external storage.
后来,这个图像添加到媒体商店,我呼吁:
Later, to add this image to the media store, I call:
MediaStore.Images.Media.insertImage(getContentResolver(), fullPath, "IMG_"+System.currentTimeMillis(),null);不过,我的照片总是增加了走廊尽头 - 它认为,如何改变这些信息的图片拍摄于1970年。
However, my picture always adds to the end of the gallery - it thinks that the picture was taken in 1970. How do I change this information?
谢谢!
推荐答案使用带有ExifInterface JPEG文件(而不是PNG!)任职
Worked using JPEGS (not PNG!) with ExifInterface
更多推荐
生成的位图的时间戳
发布评论