Gives Exception In Set The Value Of EditText
I am creating dynamically 2 dimentional EditText of Array. And i want to get the value of 1 EditText and set it to another EditText. It gives me Exception on setting (editText[2][2
Solution 1:
You have an infinite loop here. The exception is a java.lang.StackOverflowError
(see the beginning of your logcat) because when you call editText[2][2].setText(ss)
in your afterTextChanged()
method, that generates a callback to the afterTextChanged()
method of the EditText view that you modified, and that calls setText(ss)
again which generates another callback, etc, etc, ad infinitim (or until you get a StackOverflowError).
You need to either think about another way of doing this, or at least find a way to stop the infinite recursion.
Post a Comment for "Gives Exception In Set The Value Of EditText"