生成的位图的时间戳

编程入门 行业动态 更新时间:2024-10-26 08:23:28
本文介绍了生成的位图的时间戳 - 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

更多推荐

生成的位图的时间戳

本文发布于:2023-11-23 14:50:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621840.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位图   时间

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!