Can anyone suggest me any event related to the focus of the EditText
?
My application contains a EditText
, which accepts a URL in it.
Now my problem is that, that after the user will enter the URL in the field and Move further, without any of the click event, i.e when the focus will move from the EditText
, it should detect the entered Url and goes to the server.
If I get the reply using Json Parsing, then it'll be more convenient.
Declare object of EditText on top of class:
Find EditText in onCreate Function and setOnFocusChangeListener of EditText:
It works fine.
Here is the focus listener example.
For those of us who this above valid solution didnt work, there's another workaround here