开发者

Path of Images taken with the camera in android 2.1

开发者 https://www.devze.com 2023-03-23 08:42 出处:网络
I have problem in accessing the exact path of images 开发者_Python百科saved by camera in android 2.1 or lower API.I used this Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTUR

I have problem in accessing the exact path of images 开发者_Python百科saved by camera in android 2.1 or lower API. I used this Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) but it works for API level > 7.


For API < 8 you will probably will have to do what this guy suggest.

What exactly are you trying to achieve? It bight be possible to it in some other way.


Usually, Environment.getExternalStorageDirectory().getCanonicalPaht() will give you the directory the camera app uses. I used it in my application and it is API 8.

0

精彩评论

暂无评论...
验证码 换一张
取 消