【问题标题】:How can I change the name of an image when inserting it to the Android gallery?将图像插入 Android 图库时如何更改图像名称?
【发布时间】:2011-01-13 07:35:45
【问题描述】:

当我使用 Android 的相机应用拍照时,它会以与其创建日期/时间相同的名称插入到图库中,例如“2010-02-04 16.36.15.jpg”

在我的应用程序中,我拍摄自己的照片,然后使用 android.provider.MediaStore.Images.Media.insertImage( ContentResolver cr, Bitmap source, String title, String description);

但是,在画廊中,无论我在标题参数中输入什么,它们都会出现一个似乎是他们创作的时间戳的名称,例如“1265323665851.jpg”。

我需要它们与从 Android 的相机应用程序中获得的名称相同,以便正确排序。

有办法吗?

提前致谢。

【问题讨论】:

    标签: android image image-gallery


    【解决方案1】:

    老问题。我最终发现图片的顺序是关于数据库中的一个字段。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-05
      • 1970-01-01
      • 2017-07-13
      • 1970-01-01
      • 2023-04-10
      • 2022-07-18
      • 1970-01-01
      相关资源
      最近更新 更多