生成的位图的时间戳 - Android电子 [英] Timestamp of generated bitmap - Android

查看:116
本文介绍了生成的位图的时间戳 - 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

这篇关于生成的位图的时间戳 - Android电子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆