Android Question detect user input...

MrKim

Well-Known Member
Licensed User
Longtime User
ok, i can't get exactly what i want so i need to try another approach. basically i want to know if the user is doing anything. i have detected the phone unlock with android.intent.action.USER_PRESENT. This is a start, but the phone may already be unlocked and the user is not there.

I know you can't trap keystrokes/screen input, so my question is this; are there any other ways to detect that the user is doing SOMETHING? I just need to know the user is present. The more ways the better.

Thanks.
 

mangojack

Expert
Licensed User
Longtime User
one option .. listen for Phone event change ... more directly,the user is making a call.
B4X:
PhoneEvents_PhoneStateChanged (State AsString, ..
 Case "OFFHOOK"
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…