MrKim Well-Known Member Licensed User Longtime User Sep 23, 2012 #1 I would really like to capture any screen touch/keypress if that is possible. I don't want to do anything to change it. Basically all I am after is to know that the user is there. UserPresent works most of the time but there are times when the screen will not be locked and I will need to take action based on know the user is actively present at the phone. Thanks in advance for any help.
I would really like to capture any screen touch/keypress if that is possible. I don't want to do anything to change it. Basically all I am after is to know that the user is there. UserPresent works most of the time but there are times when the screen will not be locked and I will need to take action based on know the user is actively present at the phone. Thanks in advance for any help.
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2012 #2 You cannot catch these events when your activity is not in the foreground. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Sep 24, 2012 #3 Thanks Erel said: You cannot catch these events when your activity is not in the foreground. Click to expand... Sigh, thanks Erel. How about trapping an event that the notification window has been opened? Or one of the buttons pressed? Or is there a detailed list somewhere of the events that CAN be captured? That would be enormously handy. Thanks again Last edited: Sep 24, 2012 Upvote 0
Thanks Erel said: You cannot catch these events when your activity is not in the foreground. Click to expand... Sigh, thanks Erel. How about trapping an event that the notification window has been opened? Or one of the buttons pressed? Or is there a detailed list somewhere of the events that CAN be captured? That would be enormously handy. Thanks again
Erel B4X founder Staff member Licensed User Longtime User Sep 25, 2012 #4 All these events are not available in Android. Your best option is to Google for any such event. If you find a Java solution then in almost all cases it should be possible to implement it in Basic4android as well. Upvote 0
All these events are not available in Android. Your best option is to Google for any such event. If you find a Java solution then in almost all cases it should be possible to implement it in Basic4android as well.