开发者

connecting to an existing network programmantically

开发者 https://www.devze.com 2023-03-28 05:13 出处:网络
How can I connect to an existing network 开发者_开发技巧programmatically using WifiManager? I am trying to write a program that connects to a wifi network without having to see the inbuilt android lis

How can I connect to an existing network 开发者_开发技巧programmatically using WifiManager? I am trying to write a program that connects to a wifi network without having to see the inbuilt android list of available networks.

Thanx


If you simply carry out any network operation, say an HTTP request execution, without bothering about the WifiManager, your operation will automatically execute on the network that is currently connected.

If you want to connect to one of the available networks without the user selecting which one, I don't think that is possible. Don't you think that is a blatant breach of the user's preferences & security?

HTH,

Akshay

0

精彩评论

暂无评论...
验证码 换一张
取 消