4

I would like to show the phone's photo gallery and when the user selects an image then notify my application on the image selected so I can get that images informations.

is that possible and how?

Tim Cooper
  • 151,519
  • 37
  • 317
  • 271
maxsap
  • 2,901
  • 9
  • 42
  • 69

2 Answers2

5

See if the answer in this thread helps: How to get the images from device in Android application

Community
  • 1
  • 1
Samuh
  • 36,003
  • 26
  • 107
  • 116
  • ok found the solution to that problem too, its in this post http://stackoverflow.com/questions/3401579/android-get-filename-and-path-from-uri-from-mediastore – maxsap Aug 30 '10 at 19:26
0

u can get the absolute path of your image stored in the Gallery of your phone by

Environment.getExternalStorageDirectory();

here there are different options available. You can use DIRECTORY_PICTURES where all the images are stored in the SD Card.

now u can use this to get your directory file.

u can try this out it works for me

Rakesh Gondaliya
  • 1,225
  • 3
  • 25
  • 41