Re: [android-developers] Connectivity Manager does not return Active network information

2012-03-16 Thread sha m
Hi Mark and Robert , Thanks a lot for the information. I had my bluetooth active and connected to another mobile, but still returned null in API level 7. So it means this can be verified only above API level 13? My intention was to check the VPN connection. Could you please guide me on that?

Re: [android-developers] Connectivity Manager does not return Active network information

2012-03-16 Thread Robert Greenwalt
I don't believe API level 7 supported tethering. How are you connecting your android device to something else via BT? The getActiveNetworkInfo call only reports details about the default network. There can only be one at a time. Without reverse tethering BT can't be the default network so it

[android-developers] Connectivity Manager does not return Active network information

2012-03-15 Thread sha m
Hi, I'm trying to find the current active network with the help of ConnectivityManager. ConnectivityManager.getActiveNetworkInfo() always returns null in android 2.1 device, eventhough i have enabled wifi,bluetooth. Could someone advice me on this. Regards, Sha -- You received this message

Re: [android-developers] Connectivity Manager does not return Active network information

2012-03-15 Thread Mark Murphy
Bluetooth is not a network. WiFi is a network, but will only be active if the device has an actual WiFi connection to an access point. On Thu, Mar 15, 2012 at 8:59 AM, sha m temptes...@gmail.com wrote: Hi, I'm trying to find the current active network with the help of ConnectivityManager.

Re: [android-developers] Connectivity Manager does not return Active network information

2012-03-15 Thread Robert Greenwalt
In some situations (reverse tethering) BT can be the active network, but as Mark says you'd have to have that turned on and connected. R .On Thu, Mar 15, 2012 at 6:12 AM, Mark Murphy mmur...@commonsware.comwrote: Bluetooth is not a network. WiFi is a network, but will only be active if the

Re: [android-developers] Connectivity Manager does not return Active network information

2012-03-15 Thread Mark Murphy
On Thu, Mar 15, 2012 at 11:48 AM, Robert Greenwalt rgreenw...@google.com wrote: In some situations (reverse tethering) BT can be the active network, but as Mark says you'd have to have that turned on and connected. Oops, I forgot they added that in API Level 13. Thanks for pointing that out!