如何找到安卓手机的相机图片文件夹? [英] How can I find out the camera images folder of an Android phone?

查看:35
本文介绍了如何找到安卓手机的相机图片文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款适用于 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、摩托罗拉、索尼...)和型号(Galaxy Tab、GalaxyS4...)

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...)

推荐答案

使用 getExternalStoragePublicDirectory()

带参数 DIRECTORY_PICTURES

(或者,对于其他用例,其他类似参数,例如 DIRECTORY_MOVIES)

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

这篇关于如何找到安卓手机的相机图片文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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