On Tue, Jul 19, 2011 at 3:41 PM, sparq <[email protected]> wrote: > Hello, > > I develop an native program. But the program goes to sleep after > screen timeout. > After refering the Power Manager class information, I know the > activity can get wake lock at framework level. > But is there a way to do this at native level?
In case there is no (public) native API for this, you can always call Java code from JNI and get it from PowerManager. -- 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

