Android设备专用照相机路径 [英] Android Device specific Camera Path

查看:109
本文介绍了Android设备专用照相机路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前工作的项目要求我图像/视频存储到同一文件夹中的设备原生相机存储它们。根据我的研究,我发现每个设备存储图像/视频到一个不同的名称。那是的Nexus-One的存储在一个名为照相机(/ SD卡/ DCIM /摄像机)文件夹中的相机文件。 HTC不可思议存储其相机中的文件到一个名为100MEDIA(/ SD卡/ DCIM / 100MEDIA)文件夹中。索尼Xperia X10存储它的摄像头文件到名为100ANDRO(/ SD卡/ DCIM / 100ANDRO)文件夹中。我想知道,如果它的编程方式可能得到这条道路,这样我可以存储从我的应用程序带到了同一位置的图像/视频???有没有可以帮助做到这一点,或任何变通所需的任何API。如果是的话u能请建议我是一样的。

The project I am currently working on requires me to store Images/ Videos into the same folder as where the device native Camera stores them. As per my research I have found that each device stores the Images/Videos into a different name. That is Nexus-One stores its Camera files in to folder named "Camera" (/sdcard/DCIM/Camera). HTC Incredible stores its camera files into a folder named "100MEDIA" (/sdcard/DCIM/100MEDIA). Sony Xperia x10 stores its camera files into folder named "100ANDRO" (/sdcard/DCIM/100ANDRO). I want to know if its programatically possible to get this path so that i can store the images/videos taken from my app to the same location.??? Is there any API that may help do it or any work around that is required. If so can u pls suggest me the same.

请你们这是pretty迫切和重要。真的AP preciate并很高兴很快得到回应。真的很期待的答复。由于一吨advancce ...

Please guys this is pretty urgent and important. Would really appreciate and be glad to get a response soon. Really looking forward to the replies. Thanks a ton in advancce...

推荐答案

据我所知,只有的的视频和照片基本目录是访问以标准的方式通过的环境类。我想你必须让用户配置目标目录本身。没有prevents你做出明智的建议,给用户,虽然。

AFAIK, only the base directory for videos and photos is accessible in a standard way through the Environment class. I think you'll have to let the user configure the target directory themselves. Nothing prevents you from making intelligent suggestions to the user, though.

这篇关于Android设备专用照相机路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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