缺少方法android.net.wifi.WifiManager [英] Missing method in android.net.wifi.WifiManager
问题描述
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版本的Android 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.
这篇关于缺少方法android.net.wifi.WifiManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!