Android的文件夹路径选择器 [英] folder path picker for android

查看:262
本文介绍了Android的文件夹路径选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序需要访问一个文件夹的用户单独下载。我想用户能够捡还是通过我的应用程序浏览文件夹来获得它的路径。路径可能是内部存储或外部存储SD卡。因为我是一个小白,有一个非常简单的方法来做到这一点?感谢名单:)
步骤:

my app needs to access a folder the user separately downloads. i would like the user to be able to 'pick' or browse to the folder through my app to get its path. the path could be internal storage or external storage sd card. since me is a noob, is there a very easy way to do this?? thanx :) steps:


  1. 用户安装的应用程序

  2. 用户下载一个文件夹并将其保存在设备上(可以在任何地方)

  3. 用户说明(我如何做到这一点?)的文件夹路径的应用程序,通过浏览器的文件夹/文件夹选择器型啄

  4. 应用程序启动的工作,快乐的evr1s:)

和是的,这是它的工作..没有其他解决方法请的唯一途径。再次感谢名单..

and yes, this is the only way it has to work.. no other workarounds pls. thanx again..

推荐答案

OK,我知道了。使用选择文件对话框。下面是你需要什么,选择文件对话框

OK, I got it. Using chose file Dialog. Here is what you need ,Choose File Dialog

在这里

http://www.streamhead.com/android-tutorial-sd-card /

另一种方法是,把所有你的文件下载到目录的ListView 使用 File.getlistfiles 。而你管理你在里面的文件。

Another way is that put all yours file in downloads dir into ListView using File.getlistfiles. And you manage you file in there.

这篇关于Android的文件夹路径选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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