Loading all the images from gallery into the Application in android

前端 未结 6 1151
离开以前
离开以前 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:38

    You can not get results with just one query, try to instantiate two different Cursors. Since you have already added EXTERNAL_CONTENT_URI, here is another:

     actualimagecursor2 = managedQuery(MediaStore.Images.Media.INTERNAL_CONTENT_URI, proj,
                          null, null, MediaStore.Images.Media.DEFAULT_SORT_ORDER);
    

提交回复
热议问题