Home > Software design >  open gallery from android studio folder rather than the phone photo gallery
open gallery from android studio folder rather than the phone photo gallery

Time:10-12

I have a activity that select image on the android photo gallery

Intent intent = new Intent(Intent.Action_PICK, MediaStore.Images.Media.INTERNAL_OCNTENT_URI);

but I want to choose images from my android studio drawable folder instead.
how should I modify the code?

enter image description here

CodePudding user response:

You don't permission for that and that question is already asked

Link here

CodePudding user response:

Im afraid there is no ACTION_PICK for picking images to project's folder.

But, you may create your own UI to show the images from your project's folder by getting the images using getIdentifier() as suggested from the link that Manjeet Deswal's answer provide

  • Related