Using Intent.ACTION_PICK for specific path

前端 未结 2 1352
梦毁少年i
梦毁少年i 2020-11-29 11:12

I am trying to use Android gallery to pick image. Launching gallery is easy for that purpose

Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photo         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 11:26

    Why not ?

        Intent galleryIntent = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
    startActivity(galleryIntent)
    

    Good luck with..

提交回复
热议问题