peacemaker Expert Licensed User Longtime User May 31, 2025 #1 Hi, All How about such task on modern Androids 9+ now ?
Erel B4X founder Staff member Licensed User Longtime User Jun 1, 2025 #2 Have you tried PhoneEvents? I think that it will work as long as your app is running. You cannot intercept this event if your app isn't running. Upvote 0
Have you tried PhoneEvents? I think that it will work as long as your app is running. You cannot intercept this event if your app isn't running.
peacemaker Expert Licensed User Longtime User Jun 1, 2025 #3 Erel said: PhoneEvents Click to expand... PhoneEvents ineed work, thanks, Erel. So the way is as usual: foreground service that starts PhoneEvents to listen for <action android:name="android.intent.action.SCREEN_ON"/> - optionally <action android:name="android.intent.action.USER_PRESENT"/> - it must ? Upvote 0
Erel said: PhoneEvents Click to expand... PhoneEvents ineed work, thanks, Erel. So the way is as usual: foreground service that starts PhoneEvents to listen for <action android:name="android.intent.action.SCREEN_ON"/> - optionally <action android:name="android.intent.action.USER_PRESENT"/> - it must ?
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2025 #4 With newer versions of Android, all of these events require your app to be running. Upvote 0