我怎样才能找出一个Android手机的摄像头的图像文件夹? [英] How can I find out the camera images folder of an Android phone?

查看:132
本文介绍了我怎样才能找出一个Android手机的摄像头的图像文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Android开发一个摄像头应用程序。

I am developing a camera app for Android.

一个要求是保存带到设备的默认相机照片文件夹即文件夹中的照片,其中Android的原生相机商店吧。

One requirement is to save the photos taken to the device's default camera photo folder i.e. the folder in which Android's native camera stores it.

我怎样才能找出其中本地相机存储照片它采取 - 这是我的理解是,这可能是不同品牌(三星,HTC,摩托罗拉,索尼......)和模式(银河标签,银河不同S4 ...)

How can I figure out where the native camera is storing the photos it's taking - it is my understanding that this could be different for different makes (Samsung, HTC, Motorola, Sony...) and models (Galaxy Tab, Galaxy S4...)

推荐答案

使用<一个href="http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory%28java.lang.String%29">getExternalStoragePublicDirectory()

通过参数<一href="http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_PICTURES">DIRECTORY_PICTURES

(或者,对于其它用途的情况下,其他类似的参数,如<一个href="http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_MOVIES">DIRECTORY_MOVIES)

(or, for other use cases, other similar parameters such as DIRECTORY_MOVIES)

这篇关于我怎样才能找出一个Android手机的摄像头的图像文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆