2

The Environment.DIRECTORY_PICTURES variable stores the path to image directory in Android 2.2 (API 8).

What is the most reasonable way to acquire this path in pre-8 versions?

It's probably (is it always in pre-8?) equivalent to the sdcard mountpoint.

qdot
  • 6,195
  • 5
  • 44
  • 95

1 Answers1

2

The true answer: You can not know for certain.

The most probable answer: Environment.getExternalStorageDirectory().getAbsolutePath() + "/DCIM"

If you know the last picture added to the device was from the camera, you can use the solution here: get current picture folder of camera

Community
  • 1
  • 1
Jason Robinson
  • 31,005
  • 19
  • 77
  • 131