I am creating a test-application in android and playing with the keyboard.
I want to create a custom keybaord layout with my own arrow keys(like in some commercial products).
What I am unable to find is :
-
how do we get the view which has focus in any application? The keyboard is running as service, and i need this to be usable in all applications. I cannot call findById as this might be some third party application.
-
When I click the arrow keys, the cursor should move(up, down, left, right) in the view the cursor is currently in.
Any idea how to start this?
I used the following function:
respectively