在Android的蓝牙编程蓝牙、Android

2023-09-05 07:47:11 作者:你有长发但没有腰

我想创建一个使用蓝牙与电脑进行通信Android上的应用程序。我想从Android应用程序发送短信,接收来自PC的应用程序文本/事件。任何人都可以指导我如何使两者沟通?或引导我的一些资源?

I am trying to create a app on android that uses bluetooth to communicate with my PC. I want to send text from android app and receive text/events from PC app. Can anyone guide me on how to make the two communicate? or guide me to some resource?

推荐答案

在的Andr​​oid文档通过几乎所有你需要散步。而且还有一个蓝牙聊天示例应用程序自带的SDK。

The Android documentation walks through almost everything you'll need. And there is also a Bluetooth chat sample application that comes with the SDK.