如何使用Android模拟器测试蓝牙应用? [英] How to use android emulator for testing bluetooth application?

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

问题描述

我开发,将请求发送到蓝牙打印机进行打印的应用程序。在code工作正常进行真正的设备,但我想在Android模拟器上运行它。如何使用模拟器进行蓝牙测试?

I am developing an application which will send a request to a bluetooth printer for printing. The code is working fine for real devices, but I want to run it on the Android Emulator. How can I use the emulator for bluetooth testing?

推荐答案

您不能。模拟器不支持蓝牙,正如在SDK中的文档和其他几个地方。 Android模拟器是没有蓝牙功能

You can't. The emulator does not support Bluetooth, as mentioned in the SDK's docs and on several other places. Android emulator is not having bluetooth capability".

您可以用真实的设备只有..

You can go with real device only..

仿真限制

仿真器的功能限制包括:

The functional limitations of the emulator include:

No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.
No support for USB connections
No support for device-attached headphones
No support for determining network connected state
No support for determining battery charge level and AC charging state
No support for determining SD card insert/eject
No support for Bluetooth

请参阅此文档

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

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