如图所示...
这个是RE文件管理器中选择文件后的发送功能 这个发送是通过什么实现的啊?Android文件管理器发送
解决方案 »
- Android中如何保存并恢复WebView的内容?
- android 关于异步加载 问题
- U8800这货的屏幕分辨率是多少?
- 关于两个Activity 传值问题
- android 4.0 assets目录下的样式 访问res下的图片问题(与2.x不兼容)
- 谁能详细介绍一下uri 谢谢了
- Android cookie的问题,新手求助~~~
- 请问android里如何判断扫描到的蓝牙设备是不是蓝牙耳机啊?
- 有没有搞Android下wifi开发的一起交流下
- 关于《口袋微博》
- 怎么让linearlayout在动态添加图片显示的时候,始终只显示五个,每次添加图片后,自动水平移动,屏幕中间值显示五个图片。
- 关于NDK编译可执行文件的连接问题
http://blog.csdn.net/yuxiaohui78/article/details/8232402
这个是解决的地址ArrayList<Uri> uris = new ArrayList<Uri>();
for(int i = 0; i < size; i++){
File file=(File)list.get(selectedItemIndexes[i]).get("file");
mimeType = getMIMEType(file);
Uri u = Uri.fromFile(file);
uris.add(u);
}
boolean multiple = uris.size() > 1;
Intent intent = new Intent(multiple ? android.content.Intent.ACTION_SEND_MULTIPLE
: android.content.Intent.ACTION_SEND); if (multiple) {
intent.setType("*/*");
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
} else {
intent.setType(mimeType);
intent.putExtra(Intent.EXTRA_STREAM, uris.get(0));
}
startActivity(Intent.createChooser(intent, "Share"));
就可以