如何运行的WiFi点对点的Andr​​oid模拟器的应用..? [英] how to run wifi peer to peer application in android emulator..?

查看:228
本文介绍了如何运行的WiFi点对点的Andr​​oid模拟器的应用..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个无线点对点的机器人(4 +)的应用程序。 这里的问题是如何对其进行测试。

I am trying to develop an wifi peer to peer application in android(4.+). The problem here is how to test it.

我试图运行在Android模拟器的应用程序。没有任何选项来配置无线网络在设置菜单中,我也厌倦了使用开发工具应用程序形成的仿真器,但它没有工作,并通过我所有的谷歌上搜索了3天,以使WiFi和我发现,不支持Android模拟器WiFi无线网络。

I tried to run that application in android emulator. there was no option to configure wifi in the settings menu, i also tired to enable wifi using the dev tools application form the emulator but it didn't work, And through all my googling over 3 days and i found that Android emulator is not supported the Wifi.

所以,我选择了androidx86 4.0eeepc使用虚拟框和累添加设备WiFi和蓝牙(我的应用程序同时使用蓝牙和WiFi),但只有蓝牙设备得到了补充,并没有奏效。但我的虚拟盒检测到的WiFi和蓝牙设备。我不可能让他们在虚拟机的工作。

So i opted for androidx86 4.0eeepc using virtual box and tired to add devices both wifi and bluetooth (my app uses both bluetooth and wifi) but only bluetooth device got added and it did not work. But my virtual box detected the wifi and bluetooth devices. I just couldnt get them work with the virtual machine.

我什么都试过像使用androidx86终端仿真器应用程序,使用手动添加地址加上netcfg 通过Android命令行,但他们都没有工作。

I tried everything like manually adding the addresses using terminal emulator app in androidx86 and used netcfg through the android commandline but neither of them worked.

请建议和指导我的正确路径运行这些类型的使用WiFi和蓝牙的Andr​​oid应用程序。

Please suggest and guide me on the correct path to run these kind of applications that use wifi and bluetooth in android.

在此先感谢。

推荐答案

首先,请确保您启用了无线网络直接在Android设置两个VirtualBox的实例:

First, be sure you enabled WiFi Direct in the Android settings for the two virtualbox instances:

设置 - >无线和网络 - >更多 - > Wi-Fi直

Settings --> Wireless & Networks --> More... --> Wi-Fi direct

这已经表示作为工作一旦道坎之后,我'敢肯定,许多人经历过同样的...只是一定要启用无线直接

It has been stated as working once that hurdle was overcome, and I'm sure many have experienced the same...just be sure to enable wifi direct

我会尽量正是你已经尝试过通过从仿真器自然移动到androidx86项目。虽然不可靠的,我建议你在看和finagling这一点,如果你还没有看到它:的 Android的:在仿真模拟的WiFi 和<一个? href="http://stackoverflow.com/questions/3002886/how-to-disable-enable-network-switch-to-wifi-in-android-emulator">How禁用/启用网络,切换到无线在Android模拟器?最有可能没有完全走出成功,但可能足以让你知道它的工作原理或会工作。

I would have tried exactly what you've already tried by naturally moving from the emulator to the androidx86 project. Although unreliable, I'd recommend looking at and finagling this, if you haven't yet seen it: Android: Simulate WiFi in the emulator? and How to disable/enable network, switch to Wifi in Android emulator? most likely wouldn't have full out success but may be enough to let you know that it works or would work.

据测试 WiFi的直接/ WiFiP2P 没有你自己有一个设备/秒,我会建议:

As far as testing WiFi-Direct/WiFiP2P without you yourself having a device/s, I would recommend:

  • 试行一些摆弄的,如上所述。而通读吨日志。
  • 您总是可以围观源给朋友,或在一个小测试者论坛发布一个APK。

当然,这两方面的选择是不理想的,无缝的,或快。所以,我一定希望你得到AndroidX86 4.0的VirtualBox虚拟机中运行,因为它应该,一旦你检查设置和配对的无线接入点: - )

Of course, both of those options are not ideal, seamless, or fast. So, I'd definitely hope you get VirtualBox VMs of AndroidX86 4.0 running as it should once you check that setting and pair up the WiFi APs :-)

这篇关于如何运行的WiFi点对点的Andr​​oid模拟器的应用..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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