Retrieving only images from gallery when firing android image chooser intent

前端 未结 1 1804
心在旅途
心在旅途 2021-01-18 04:17

I am allowing the user to select an image from the device using the following code:

(from this post)

public class BrowsePicture extends Activity {

         


        
相关标签:
1条回答
  • 2021-01-18 04:37

    No. That is up to the application the user chooses to satisfy the SELECT_PICTURE.

    That said, there are ways to block images from showing in the Gallery all the time by adding flag files to folders or hiding the folders, but that is not what you asked. You can't do it from your program.

    0 讨论(0)
提交回复
热议问题