在Android模拟器支持蓝牙 [英] Bluetooth support on Android Emulator

查看:3151
本文介绍了在Android模拟器支持蓝牙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果开发团队至极作出的模拟器有一些信息,使蓝牙工作在Android模拟器,表明一些关于它的链接,如果他们有一些最新发布或者它们是否会使其在未来的工作

I wanna know if the developer team wich made the emulator have some information to make bluetooth works in the android emulator, indicate some links about it, if they have some date for release or if they'll make it works in the future.

感谢。

推荐答案

据我所知,在模拟器蓝牙的支持。我将要教Android和蓝牙在某些课程。而学生需要code的东西,并测试(猜)的Andr​​oid模拟器。

as far as I know there is no support in the emulator for bluetooth. And I will have to teach android and bluetooth in some classes. And the students will need to code stuff and test (guess it) in the android emulator.

于是我想出了在TCP之上Android的蓝牙API的裸骨再实施。你可以找到它在这里在github

So I came up with a bare-bone reimplementation of the android bluetooth API on top of tcp. You can find it on here on github.

基本上,您的机器上运行的TCP服务器,而模拟器将通过它连接。
相反,在包中的类 android.bluetooth ,你只需要在包 dk.itu.android.bluetooth (和其他两个小修改)。

Basically, you run a tcp-server on your machine, and the emulators will connect through it. Instead of using the classes in the package android.bluetooth, you just need to use the classes in the package dk.itu.android.bluetooth (and other 2 little modifies).

至于现在支持:


  • 开关开/关单选

  • 发现设备(仅适用于其他Android模拟器)

  • 创建蓝牙服务

  • 连接蓝牙服务

这不是很多,但直到我们从Android球员得到了更多一些,我想有没有别的左右。

It's not much, but until we got some more from the android guys, I guess there is nothing else around.

希望它会是有用的,干杯!

Hope it'll be useful, cheers!

这篇关于在Android模拟器支持蓝牙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆