如何创建接入点
我想创建一个可以创建接入点的应用程序。通过查看 Android 文档,我看到了 WifiManager 类 [1]:
/**
* Start AccessPoint mode with the specified
* configuration. If the radio is already running in
* AP mode, update the new configuration
* Note that starting in access point mode disables station
* mode operation
* @param wifiConfig SSID, security and channel details as
* part of WifiConfiguration
* @return {@code true} if the operation succeeds, {@code false} otherwise
*
* @hide Dont open up yet
*/
public boolean setWifiApEnabled(WifiConfiguration wifiConfig, boolean enabled) {
try {
return mService.setWifiApEnabled(wifiConfig, enabled);
} catch (RemoteException e) {
return false;
}
}
但由于某种原因它被隐藏了。有什么方法可以做到与 WifiManager 相同的功能吗?我可以以某种方式访问此方法吗?
I would like to create an application which could create an access point. Looking through Android documentation I see the WifiManager class [1]:
/**
* Start AccessPoint mode with the specified
* configuration. If the radio is already running in
* AP mode, update the new configuration
* Note that starting in access point mode disables station
* mode operation
* @param wifiConfig SSID, security and channel details as
* part of WifiConfiguration
* @return {@code true} if the operation succeeds, {@code false} otherwise
*
* @hide Dont open up yet
*/
public boolean setWifiApEnabled(WifiConfiguration wifiConfig, boolean enabled) {
try {
return mService.setWifiApEnabled(wifiConfig, enabled);
} catch (RemoteException e) {
return false;
}
}
But because of some reason it is hidden. Is there any way to do the same that WifiManager? Could I have access to this method somehow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用接入点:
You can use accesspoint: