Android NDK for catching power and other OS events

41 views
Skip to first unread message

Apoorva Venkatesh

unread,
Apr 2, 2021, 11:10:37 AM4/2/21
to android-ndk
Hi,

I want to catch power events such as phone on/off, app going into foreground/background, wifi related events etc, on Android. 

Is BroadcastReceiver the only way to go? I wanted to know if there is an Android NDK interface available so that i can catch them directly from my native C++ code. 
Reply all
Reply to author
Forward
0 new messages