Android Question Detect screen on

Devv

Active Member
Licensed User
Longtime User
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>)


what is the receiver for if i want to detect when screen is turned on ?
 

Rusty

Well-Known Member
Licensed User
Longtime User
Can you detect when the device goes to sleep or when the screen dims?
Thanks,
Rusty
 
Upvote 0
Top