简体   繁体   English

使用蓝牙连接Android设备?

[英]Connect Android Devices using bluetooth?

I have two android devices, and I want to connect them using bluetooth programming, sorry for say but I don't want to see the links on Android Developer Documentations. 我有两个Android设备,我想用蓝牙编程连接它们,很抱歉,但我不想看到Android Developer Documentations上的链接。

I want to connect them without any permission like password or anything else, so just simply connect two devices and start sending files and receive files without any permission, how can I implement such concept? 我想在没有密码或其他任何许可的情况下连接它们,所以只需连接两个设备并开始发送文件并在没有任何许可的情况下接收文件,我该如何实现这样的概念?

Help me please, I am stuck on this. 请帮助我,我坚持这个。

Short, you can't. 简而言之,你不能。 You'll need at least the Bluetooth permissions as illustrated in the tutorial on the Android Docs-Page. 您至少需要蓝牙权限,如Android Docs-Page上的教程所示。

You have everything here : 你在这里有一切:

http://developer.android.com/resources/samples/BluetoothChat/index.html http://developer.android.com/resources/samples/BluetoothChat/index.html

Get the code, run it and see how it works. 获取代码,运行代码并查看其工作原理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM