Devv Active Member Licensed User Longtime User Oct 31, 2015 #1 when i wanted to detect connection established i used static broadcast receiver wit this code in the mainfest. AddReceiverText(phoner, <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter>) Click to expand... what is the receiver for if i want to detect when screen is turned on ?
when i wanted to detect connection established i used static broadcast receiver wit this code in the mainfest. AddReceiverText(phoner, <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter>) Click to expand... what is the receiver for if i want to detect when screen is turned on ?
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2015 #2 It is not possible to use a static intent filter to detect the screen on event. It will only be caught by dynamic receives (such as the one created with PhoneEvents). Upvote 0
It is not possible to use a static intent filter to detect the screen on event. It will only be caught by dynamic receives (such as the one created with PhoneEvents).
Rusty Well-Known Member Licensed User Longtime User Oct 19, 2016 #3 Can you detect when the device goes to sleep or when the screen dims? Thanks, Rusty Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2016 #4 You should have started a new thread for this question. You can use PhoneEvents to listen to the ScreenOn and ScreenOff events. Upvote 0
You should have started a new thread for this question. You can use PhoneEvents to listen to the ScreenOn and ScreenOff events.
Rusty Well-Known Member Licensed User Longtime User Oct 19, 2016 #5 ...sorry, I thought it was the same issue. Thanks Erel Upvote 0