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,324
  • 4
  • 28
  • 54
Muhammad Irfan
  • 1,447
  • 4
  • 26
  • 56

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
  • 127,700
  • 71
  • 241
  • 295
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,213
  • 2
  • 27
  • 37