Android Question detect touch and keyboard events ..

manojk

Member
Licensed User
Hello Everyone..

Is there a way to log or detect touch and keyboard activity in android using B4A , i know this can be done inside my own Activity layout, but I want to capture it wherever it happens, even outside my layout.
For example, if the user is navigating to a "browse folder app" and searches for a particular file I want detect how many times he used the touch method and how many times he pressed the key board keys.
I also want to know if I can find the name of the foreground app the user is currently on..basically I want to log the activity in the below format
--------------------------------------------------
Current App Nam : Browse Folder
Activity Name : Touch Start
Activity Name : Touch End
Activity Name : Touch Move Start
Activity Name : Touch Move End
Activity Name : KeyPress Start
Activity Name : KeyPress End
 

DonManfred

Expert
Licensed User
Longtime User
I don´t think that you can control other apps.

It may be possible with the accessibility-service. I´m absolute unsure about this though.
 
Upvote 0
Top