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.com>wrote:

> 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.
> > 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 because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Reply via email to