0

I have this scenerio

http://www.cubixshade.com/images/test_photo.jpg

Open above url and I want an interface when photo box is clicked to browse sdcard images ?

does android sdk provide any component which browse image from sd card and show in android appplication ?

Vishal Pawar
  • 4,181
  • 3
  • 27
  • 54
Muhammad Irfan
  • 1,447
  • 4
  • 25
  • 52

2 Answers2

2

Yes there are 2 scenario to pick image from SD-card images.

  1. Open native gallery and pick image from it (Check this answer)
  2. User-defined gallery by defining custom adapter for your ListView/GridView, pick image from it (check this example: Android – Select multiple photos from Gallery)
Community
  • 1
  • 1
Paresh Mayani
  • 125,853
  • 70
  • 238
  • 294
1

Here is the pseudo-code:

String pathToSdCard = Environment.getExternalStorageDirectory().getAbsolutePath();
new File(pathToSdCard ).list();

and also Check the link

Thanks

Community
  • 1
  • 1
Md Abdul Gafur
  • 6,169
  • 2
  • 26
  • 37