Thursday, March 15, 2012

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

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 <temptest05@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment