On Tue, Apr 24, 2012 at 6:40 AM, Bunty syed <[email protected]> wrote:
> But there are no APIS available in the WifiInfo  to check the security
> protocol like  security type ,encryption type or password
> authentication required or not for the currently active wifi network.

WifiInfo does not, but WifiConfiguration does. In theory, you could
find the WifiConfiguration matching the SSID/hidden SSID/BSSID of the
WifiInfo and determine what the configuration is in terms of
encryption.

In practice:

-- WifiConfiguration tells you what was possible, not what was
negotiated for this connection
-- I don't know how well this works for campus-style settings, with
lots of access points advertising the same SSID

Unless there is something that I am missing, this feels like a hole in the API.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to