[英]Choose file from downloads folder -> send it over bluetooth
I have a problem that I've broken down into two main parts. 我有一个问题,我分为两个主要部分。
1) Click button to pop up downloads folder. 1)点击按钮,弹出下载文件夹。 Choose a file from the downloads folder. 从下载文件夹中选择一个文件。
2) Take that file that you just chose. 2)取下您刚刚选择的文件。 Send it to a paired device via bluetooth. 通过蓝牙将其发送到配对的设备。
The bluetooth portion I believe won't be that bad given the resources and examples on here. 鉴于此处的资源和示例,我认为蓝牙部分不会那么糟糕。
But #1 I am having trouble figuring out how to tackle (kinda new to android). 但是#1我在弄清楚如何解决(android的新功能)时遇到了麻烦。 Are there any good tutorials/docs/links for accessing the downloads folder, picking a file and then using that file for later use for things such as file transfer/etc? 是否有任何好的教程/文档/链接可用于访问下载文件夹,选择文件,然后将该文件用于以后的用途(例如文件传输/等)?
Thanks 谢谢
File selection on android - 在Android上选择文件-
http://code.google.com/p/android-file-dialog/ http://code.google.com/p/android-file-dialog/
How to use intent for choosing file browser to select file 如何使用意图选择文件浏览器选择文件
Whichever method you use you will need to get a file path back. 无论使用哪种方法,都需要找回文件路径。 Then you will use that path for the next part of your question, how to send a file via Bluetooth 然后,您将使用该路径进行问题的下一部分,即如何通过蓝牙发送文件
Bluetooth File Transfer 蓝牙文件传输
How to send file from Android device to other device through Bluetooth by code 如何通过代码通过蓝牙将文件从Android设备发送到其他设备
Always do research before you ask - you will get more up votes and better answers if you do 始终在问问之前进行研究-如果您这样做,将会获得更多的赞成票和更好的答案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.