Timestamp of generated bitmap - 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); 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? Thanks! Worked using JPEGS (not PNG!) with ExifInterface 来源: https://stackoverflow.com/questions/12180934/timestamp-of-generated-bitmap-android