In my application, I have a EditText and a Button. When I press the button, the text entered in EditText is taken into a string and further used for AsyncTask. In the button's onClick method, I've set et.setFocusable(false)
so that user should not change the text during the AsyncTask. And in the onPostExecute()
method again I've changed it to et.setFocusable(true)
. For some unknown reasons i'm able to disable focus from EditText but cannot regain it after AsyncTask completion. Also bt.setEnabled(false)
is also not working. Any help will be greatly appreciated.
Did not post the completed code because I thought it wouldn't be much necessary.