文件名称:FileSelector
介绍说明--下载内容来自于网络,使用问题请自行百度
private void ShowSelectFiles(){
String actionName = "SelectFiles" // 动作名
Intent i=new Intent(actionName) // 以下参数都不是必须的,参数名区分大小写
i.putExtra("Single", true) // 是否只能选择一个文件
i.putExtra("Path", "/mnt/") // 起始目录
i.putExtra("Type", "File") // 允许选择文件(File) 还是目录(Folder) 还是都可以(All)
i.putExtra("Pattern", "\\.(wma|mp3|mid|wav)$") // 文件名必须匹配的正则表达式
try{
startActivityForResult(i,0)
}catch(Exception ex){
Toast t =Toast.makeText(this, "请安装文件选择器", 1000)
t.setGravity(Gravity.CENTER, 0, 0)
t.show()
}
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if(resultCode==Activity.RESULT_OK){
ArrayList<String> listFile = data.getStringArrayListExtra("Result")
//处理选中的文件....
}-file select this is file select
String actionName = "SelectFiles" // 动作名
Intent i=new Intent(actionName) // 以下参数都不是必须的,参数名区分大小写
i.putExtra("Single", true) // 是否只能选择一个文件
i.putExtra("Path", "/mnt/") // 起始目录
i.putExtra("Type", "File") // 允许选择文件(File) 还是目录(Folder) 还是都可以(All)
i.putExtra("Pattern", "\\.(wma|mp3|mid|wav)$") // 文件名必须匹配的正则表达式
try{
startActivityForResult(i,0)
}catch(Exception ex){
Toast t =Toast.makeText(this, "请安装文件选择器", 1000)
t.setGravity(Gravity.CENTER, 0, 0)
t.show()
}
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if(resultCode==Activity.RESULT_OK){
ArrayList<String> listFile = data.getStringArrayListExtra("Result")
//处理选中的文件....
}-file select this is file select
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FileSelector/可安装文件/读我.txt
FileSelector/bin/resources.ap_
FileSelector/bin/FileSelector.apk
FileSelector/可安装文件/FileSelector.apk
FileSelector/proguard.cfg
FileSelector/bin/cn/yishou/fileselector/FileSelector$1.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$2.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$3.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$4.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$5.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$6.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$TargetFileTypes.class
FileSelector/bin/cn/yishou/fileselector/FileSelector.class
FileSelector/bin/cn/yishou/fileselector/R$attr.class
FileSelector/bin/cn/yishou/fileselector/R$drawable.class
FileSelector/bin/cn/yishou/fileselector/R$id.class
FileSelector/bin/cn/yishou/fileselector/R$layout.class
FileSelector/bin/cn/yishou/fileselector/R$string.class
FileSelector/bin/cn/yishou/fileselector/R.class
FileSelector/.classpath
FileSelector/bin/classes.dex
FileSelector/src/cn/yishou/fileselector/FileSelector.java
FileSelector/gen/cn/yishou/fileselector/R.java
FileSelector/.project
FileSelector/default.properties
FileSelector/AndroidManifest.xml
FileSelector/res/layout/main.xml
FileSelector/res/values/strings.xml
FileSelector/res/drawable-ldpi/icon.png
FileSelector/res/drawable-mdpi/icon.png
FileSelector/res/drawable-hdpi/icon.png
FileSelector/bin/cn/yishou/fileselector
FileSelector/gen/cn/yishou/fileselector
FileSelector/src/cn/yishou/fileselector
FileSelector/bin/cn/yishou
FileSelector/gen/cn/yishou
FileSelector/src/cn/yishou
FileSelector/bin/cn
FileSelector/gen/cn
FileSelector/src/cn
FileSelector/res/drawable-hdpi
FileSelector/res/drawable-ldpi
FileSelector/res/drawable-mdpi
FileSelector/res/layout
FileSelector/res/values
FileSelector/assets
FileSelector/bin
FileSelector/gen
FileSelector/res
FileSelector/src
FileSelector/可安装文件
FileSelector
FileSelector/bin/resources.ap_
FileSelector/bin/FileSelector.apk
FileSelector/可安装文件/FileSelector.apk
FileSelector/proguard.cfg
FileSelector/bin/cn/yishou/fileselector/FileSelector$1.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$2.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$3.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$4.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$5.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$6.class
FileSelector/bin/cn/yishou/fileselector/FileSelector$TargetFileTypes.class
FileSelector/bin/cn/yishou/fileselector/FileSelector.class
FileSelector/bin/cn/yishou/fileselector/R$attr.class
FileSelector/bin/cn/yishou/fileselector/R$drawable.class
FileSelector/bin/cn/yishou/fileselector/R$id.class
FileSelector/bin/cn/yishou/fileselector/R$layout.class
FileSelector/bin/cn/yishou/fileselector/R$string.class
FileSelector/bin/cn/yishou/fileselector/R.class
FileSelector/.classpath
FileSelector/bin/classes.dex
FileSelector/src/cn/yishou/fileselector/FileSelector.java
FileSelector/gen/cn/yishou/fileselector/R.java
FileSelector/.project
FileSelector/default.properties
FileSelector/AndroidManifest.xml
FileSelector/res/layout/main.xml
FileSelector/res/values/strings.xml
FileSelector/res/drawable-ldpi/icon.png
FileSelector/res/drawable-mdpi/icon.png
FileSelector/res/drawable-hdpi/icon.png
FileSelector/bin/cn/yishou/fileselector
FileSelector/gen/cn/yishou/fileselector
FileSelector/src/cn/yishou/fileselector
FileSelector/bin/cn/yishou
FileSelector/gen/cn/yishou
FileSelector/src/cn/yishou
FileSelector/bin/cn
FileSelector/gen/cn
FileSelector/src/cn
FileSelector/res/drawable-hdpi
FileSelector/res/drawable-ldpi
FileSelector/res/drawable-mdpi
FileSelector/res/layout
FileSelector/res/values
FileSelector/assets
FileSelector/bin
FileSelector/gen
FileSelector/res
FileSelector/src
FileSelector/可安装文件
FileSelector
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.