• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android NDK alternative to BroadcastReceiver

ask_user03

Lurker
Apr 2, 2021
1
0
I am trying to catch power related events, screen on/off, wifi events, app going into background/foreground, etc on Android.

Is BroadcastReceiver the only way to do this? Is there an Android NDK interface available to catch these events directly from my native C++ application?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones