-1

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

chen abien
  • 257
  • 1
  • 6

2 Answers2

0

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

Link here

Manjeet deswal
  • 692
  • 2
  • 5
  • 18
0

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

Putra Nugraha
  • 574
  • 1
  • 4
  • 12