Mark,

Thanks for your reply. I'm not sure when my original message got
approved - I missed it and your reply - and in the meantime found this
for myself in the source code.

Interestingly there must be another way to do this than through the
official hidden API as there is at least one hot spot widget in the
marketplace already.

I tried writing a spoof version of android.net.wifi.WifiManager which
allowed me to compile and deploy the code, but this results in a
noSuchMethod error at runtime - so the @hide annotation applies not
just to what gets put into the SDK API that I compile against in
Eclipse - although the Reflection API shows that these methods are
present.

Thanks again,
Phil.

On Nov 9, 8:58 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> They are not part of the public SDK at present. If you look at the
> source code, you will see they all have the @hide annotation. They
> might be introduced in the future, but for the moment they are hidden,
> perhaps because the API is unstable.
>
>
>
>
>
> On Tue, Nov 9, 2010 at 5:04 AM, Phil <p...@surfsoftconsulting.com> wrote:
> > I'm looking at how Android supports wifi portable hot spot
> > functionality with a view to writing simple home screen widget that
> > allows people toturnthe phone's wifi hotspot on and off without
> > digging into the device settings.
>
> > There was nothing obvious at developer.android.com so I dug through my
> > copy of the Android source code and found that the WifiManager class
> > (android.net.wifi.WifiManager) provides the basics to allow the state
> > to be queried. So as well as 'getWifiState()' there is
> > 'getWifiApState()' and a matching set of state constants.
>
> > However, in my bang-up-to-date Eclipse IDE, this class has none of the
> >Apmethods or constants. Can anyone shed any light on this?
>
> > Thanks,
> > Phil.
>
> > --
> > 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/commonsguyhttp://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

Reply via email to