WifiManager.getConnectionInfo

185 views
Skip to first unread message

AppCoder

unread,
Jan 7, 2013, 5:04:35 PM1/7/13
to android-...@googlegroups.com
The documentation for:

http://developer.android.com/reference/android/net/wifi/WifiManager.html#getConnectionInfo%28%29

says "if any is active", yet:

http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getSupplicantState%28%29

has states for INACTIVE, INTERFACE_DISABLED, DORMANT and UNINITIALIZED.  I'm finding
on one OEM's device getConnectionInfo is sometimes returning null when the Wifi is disabled (and
I suspect they will point to the "if any is active" description of the getConnectionInfo as an out.)  Given
that my Google devices don't do this, should the documentation be updated to eliminate the "if any
is active" clause for getConnectionInfo?
Reply all
Reply to author
Forward
0 new messages