As Dianne mentioned assuming that because there's no wifi you are
running on the emulator is a bit risky. There could be real phones
with no wifi and emulator emulating wifi.
Stick to any of the other methods.

On Nov 4, 6:19 am, Zhihong GUO <gzhh...@gmail.com> wrote:
> It can not work. There is no exception throws and the wifiManager returned
> can be used as wifiManager.isEnabled()
>
> 2009/11/4 Dianne Hackborn <hack...@android.com>
>
> > On Tue, Nov 3, 2009 at 11:10 AM, Roman ( T-Mobile USA) <
> > roman.baumgaert...@t-mobile.com> wrote:
>
> >> Furthermore the API call
>
> >>  (WifiManager)mContext.getSystemService(mWifiService);
>
> >> gives you an exception on the Emulator which is an indication that
> >> Wifi radio is not supported.
>
> > That's only because it doesn't happen to currently be implemented in the
> > emulator.  This could very well change in the future.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
>
> >  --
> > 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<android-developers%2bunsubscr...@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