Thanks Al, Yes, I can see that's Power Manager is part of the public API. So, it's a permissions problem.
Thanks for pointing me to that. On Wednesday 16 June 2010 16:39:44 Al 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. > > > So, I'm not sure. I guess I was wondering if there was any documentation > > available to definitively states what API object methods an ordinary 3rd > > party application can and can't use. > > http://developer.android.com/reference/ -- 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