It is necessary for me that when the cursor is located (focus) in the EditText field, a certain function is called, for example:

 System.out.println("Hello!!!"); 

Google, read the documentation for EditText , but did not find such a method.

Thank you in advance!

    1 answer 1

    Try setOnFocusChangeListener .