Loading all the images from gallery into the Application in android

前端 未结 6 1154
离开以前
离开以前 2020-11-29 18:10

I am creating an application wherein I need all the images in the gallery into my application that has a girdview in it. I want all the images from all the folders to appear

6条回答
  •  死守一世寂寞
    2020-11-29 18:32

    You are using MediaStore.Images.Media.EXTERNAL_CONTENT_URI which is only the external storage.For the internal there is MediaStore.Images.Media.INTERNAL_CONTENT_URI. You can use a MergeCursor to combine both query results.

提交回复
热议问题