i'm tryin' wakelock on android phone, can't find info on doing in c/cpp through ndk/jni.
have been googlin long can't see straight. see java java java, , need c. small bit of c me. :)
does know i'd find small bit of c achieves wakelock on android device?
why need it... i'm creating lib specific task , want include wakelock part of lib. keep needs together , not mix code don't have to.
you can work in c, if wish. acquire wake lock correctly, need @ least applicationcontext. means natvie code still depend on java level cooperation, nativeactivity.
you use jni find necessary classes , method id's.
Comments
Post a Comment