Wi-Fi直连Android版版本2.3及更高版本 [英] WiFi Direct for Android Version 2.3+

查看:145
本文介绍了Wi-Fi直连Android版版本2.3及更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到在该Wi-Fi直连的API的支持,它们是具有4.0或更高版本的谷歌手机上的Andr​​oid官方博客。此外,我已经看到了code访问Wi-Fi直连的API。
但我怀疑,在一些博客人都写一些2.3版本的Andr​​oid设备还支持Wi-Fi直连。所以,同样的code,我们在编写4.0或更高版本,将在其支持WiFi直接2.3版本的Andr​​oid设备的工作?我没能找到code这是Android版本2.3相兼容

I have noticed on the official Android blog that WiFi Direct APIs are supported on google phone which are having versions 4.0 or later. Also I have seen the code to access WiFi Direct API. But I have doubt that on some blogs people have written that some 2.3 version android devices also support WiFi Direct. So same code we are writing for 4.0 or later , will work on the 2.3 version android devices which support WiFi Direct?. I have failed to find the code which is compatible to android version 2.3

此我再次注意到了,替代的解决方案是AllJoyn(https://www.alljoyn.org/),但不知道这是它使用WiFi直接以正确的方式?

Again I have noticed ,Alternate solution for this is "AllJoyn" (https://www.alljoyn.org/) , but don't know that is it the right way to use WiFi Direct ?

谁能帮帮我吗?

推荐答案

这是一个设备支持WiFi直接的事实(如:2.3版本)并不一定意味着你有机会获得Wi-Fi直连的API(可从4.0)

The fact that a device supports WiFi Direct (eg: version 2.3) doesn't necessarily mean that you have access to the WiFi Direct API (available from 4.0)

在版本2.3的例子,认为该功能是有,但应用程序开发人员不能
直接与它进行交互。
我认为你是在谈论博客,球员刚刚启用了2.3 Wi-Fi直连,但不这样做由code什么。
如果你想要做由code。与Wi-Fi直连的东西,你必须启用WD和运行于4.0,至少让你有机会获得该API的设备。

On the version 2.3 examples, consider that the feature is there but the app developer can't directly interact with it. I think that on the blogs you are talking about, the guys have just enabled the WiFi Direct on 2.3 but don't do anything by code. If you want to do something by code with WiFi Direct, you need a device WD enabled and which runs on 4.0 at least so you have access to the API.

AllJoyn不会解决你的问题。 AllJoyn提供了运输的API之上的一层因此开发人员不必关心数据将通过蓝牙,WiFi遗留或WiFi直接传输。

AllJoyn won't solve your problem. AllJoyn provides a layer on top of the transport APIs so the developer doesn't have to care if the data will be transferred via Bluetooth, WIFi legacy or WiFi Direct.

这篇关于Wi-Fi直连Android版版本2.3及更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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