My idea, in app, there are two views
, one is editText
and another is submit button
, when click editText
, some pre-set characters will be pasted into the editText
, and then click submit button to send these characters. For now, half work done is done. Pre-set characters can be pasted into editText
field, but still need click submit button manually. so another half work is if or not when editText
being filled, submit button will be clicked automatically. can I set submit button on soft keyboard clicked automatically when editText
is being filled?
Another issue is in another app, submit button is being limited to click with specific time, maybe one second, still no idea about how to pass through this time limit. call system time and set up system time one second advanced? that can pass this time limit?
You can use a
TextWatcher
to monitor the EditText for changes.You can use a
TextWatcher
like so:With a
TextWatcher
, you can respond to certain events related to the text entered into theEditText
. With this example, I'm simulating a click on the Button after text has been changed.