Can Not Call Edittext In Onclicklistener
I have a code to update data in database but I have a little problem when I wanna call EditText in onClickListener get error like this http://prntscr.com/blorcg in class NetCheck M
Solution 1:
Pass userInput.getText().toString()
as a parameter in the AsyncTask
.
String input = userInput.getText().toString();
new NetCheck().execute(input);
And in your AsyncTask
:
protectedStringdoInBackground(String... args) {
String ign = editTextId.getText().toString().trim();
String code = args[0];
// Your code...
}
Post a Comment for "Can Not Call Edittext In Onclicklistener"