缺少方法android.net.wifi.WifiManager [英] Missing method in android.net.wifi.WifiManager

查看:505
本文介绍了缺少方法android.net.wifi.WifiManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网站的 androidjavadoc.com ,方法 startScanActive 在类被列入 WifiManager ,使得它可以执行积极的Wi-Fi扫描。它已经<一个href=\"http://stackoverflow.com/questions/5958715/what-is-the-difference-between-active-scan-and-passive-scan\">discussed这里近日,太。

On the site androidjavadoc.com, a method startScanActive is listed in the class WifiManager that makes it possible to perform an active wi-fi scan. It has been discussed here recently, too.

然而,当我尝试使用Eclipse中的方法,它是未找到(不确定)。 startScan 是。我想,所有的android.jar版本的Andr​​oid SDK来(从2.3到3.1)。

Nevertheless, when I try to use that method in Eclipse, it is not found (undefined). startScan is. I tried that with all android.jar versions coming with the Android SDK (from 2.3 to 3.1).

是否存在功能?我怎样才能访问它?

Does the function exist? How can I get access to it?

非常感谢

推荐答案

下面去我自己的解释,根据所引述的资源:
该功能不包含在Android SDK。
在源$ C ​​$ C,它标有Javadoc标记 @hide (<一个href=\"http://google.com/$c$csearch/p?hl=en#uX1GffpyOZk/wifi/java/android/net/wifi/WifiManager.java&q=startScanActive&exact_package=git://android.git.kernel.org/platform/frameworks/base.git&sa=N&cd=1&ct=rc\"相对=nofollow>来源),这导致其从文档中排除,但也没有被编为SDK。
为测试目的,一个自己的jar文件可以被编译和使用。但手机本身上,这将取决于供应商如果该方法将是present

Here goes my own explanation, based on the cited resources: The function is not contained in the Android SDK. In the source code, it is marked with the Javadoc tag @hide (source), which causes it to be excluded from the documentation but also not to be compiled for the SDK. For testing purposes, an own jar file may be compiled and used. But on the cell phone itself, it will depend on the vendor if the method will be present.

类似的问题。
邮报androidjavadoc.com。

这篇关于缺少方法android.net.wifi.WifiManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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