Android Question How to get screen lock event

sasidhar

Active Member
Licensed User
Longtime User
Hi,

Can anyone please let me know how to get screen lock event.

thanks
sasidhar.M
 

sasidhar

Active Member
Licensed User
Longtime User
Hi Don ,

I mean from Phone library, getsettings there is some code for screen lock,unlock. similar to that.

thanks
sasidhar
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Again; Android does not raise an event when locking/unlocking the screen.

there is some code for screen lock,unlock. similar to that.
So you want to get informed when your app is locking/unlocking the Screen? I suggest to raise the Event by yourself
B4X:
p.unlock
CallSubDelayed(me,"Screen_Unlocked")
or similar
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…