On Wed, Jun 16, 2010 at 4:39 PM, Al <[email protected]> wrote:
> Richard C. Cox wrote:
>> Yeah, goToSleep may be restricted in the API, but it says nothing about that
>> in the SDK Documentation.
>
> Non-public APIs aren't mentioned in the sdk documentation. They may be
> documented in the source code but suppressed from javadoc with @hide.

Actually, goToSleep() is public, just only accessible for applications
that hold the DEVICE_POWER permission. The need for that permission is
not documented there, which is simply a documentation bug.

-- 
Mark Murphy
CommonsWare
[email protected]
http://commonsware.com

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

Reply via email to