无法从 Android 网站运行(在 Eclipse 中)蓝牙聊天示例应用程序
当我在 Eclipse 中运行应用程序时,Android 模拟器启动,但显示
“蓝牙不可用”。
还需要在真实手机上运行/安装应用程序的帮助。我连接了 HTC Desire (Android 2.2),启用了 USB 调试并从 Eclipse 运行该应用程序。模拟器照常启动,而不是手机上运行的应用程序。
When I run the app in Eclipse, Android emulator starts but says
"Bluetooth is not available".
Also need help with running/installing an app on real phone. I connected my HTC Desire (Android 2.2), enabled USB debugging and run the app from Eclipse. Emulator starts as usual instead of the app running on my phone.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
模拟器不支持蓝牙。有关模拟器限制的信息,请参阅此处:http://developer.android.com/ guide/developing/tools/emulator.html#limitations
为了在实际设备上进行调试,您需要确保 adb 能够识别该设备。尝试“adb devices”以查看您的手机是否已列出。如果模拟器正在运行,您应该看到类似“emulator-5554”的内容,但您的真实设备将是较长的字母和数字字符串。如果它没有显示,这就是 Eclipse 将启动模拟器的原因。
Bluetooth is not supported on the emulator. See here about the Emulator Limitations: http://developer.android.com/guide/developing/tools/emulator.html#limitations
For debugging on the actual device, you'll need to make sure the device is recognized by adb. Try 'adb devices' to see if your phone is listed. If the emulator is running you should see that as something like 'emulator-5554', but your real device will be a longer string of letters and digits. If it's not showing up, this is why eclipse will start the emulator.
如果你想在你的真实手机上运行应用程序,你必须为你的手机安装电脑套装,然后以 pc_suit 模式将其连接到电脑,并确保你的手机名称显示在 eclips 的设备名称中,然后运行应用程序
if you want to run app in your real phone you must install pc suit for your phone and then connect it to pc in pc_suit mode and make shure that name of your phone is show in device name in eclips and then run app