How does one detect whether a network is a Mobile AP connection?

The application: need to decide whether to do local network SSDP
discovery via network broadcasts.

For a straight wifi connection, you use WifiManager. But when the
Mobile AP is enabled, WifiManager says that the current connection is
not Wifi.

I've tried using NetworkManager.getCurrentNetworkInfo, and
networkManager.getAllNetworkInfo. No joy. NetworkManager says the
current active connection is Mobile, and none of the other connections
in getAllNetworkInfo() are active.

The only real distinction seems to be that the default IP address for
the phone is on 192.168.*, instead of 10.* (my service provider seems
to NAT the phone address to 10.).

Obviously, checking for private range addresses is not good enough
(since the 3G connection has a private-range 10.* address); and since
public wireless APs can use 10.* or 192.168.*.

Any pointers appreciated.


-- 
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