简体   繁体   English

从下载文件夹中选择文件->通过蓝牙发送

[英]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.

相关问题 通过蓝牙将.txt或Word文件从Android发送到笔记本电脑 - Send a .txt or word file from android to laptop over bluetooth 无法从 Android 上的下载文件夹中读取文件 - Cannot read a file from Downloads folder on Android 如何在android中通过蓝牙发送文件? - how can i send file over bluetooth in android? Android:从“下载”文件夹中删除下载的文件快捷方式 - Android: Remove Downloaded file shortcut from "Downloads" folder 无法从 Android 应用程序的下载文件夹中读取文件 - Unable to read file from the Downloads folder for an android app 从 Android 的下载文件夹中获取 pdf 或 doc 文件 - Getting pdf or doc file from Downloads Folder in Android 从INTERNAL STORAGE中的Downloads文件夹中打开下载的文件(pdf) - Open a Downloaded file (pdf) from the Downloads folder in the INTERNAL STORAGE 附近的连接:为什么“下载”文件夹中的有效负载文件为空? - Nearby Connections: Why is the payload file from the Downloads folder null? Android 在从 PC 中查找文件时未在“下载”文件夹中显示文件 - Android does not show file in Downloads folder when looking for it from PC 如何从 Android Oreo 及更高版本的下载文件夹上传文件? - How to upload file from downloads folder in Android Oreo and above?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM