I have found that EditText_TextChanged is also called when the text is changed by code. Why is it like that? In what cases can this be useful?
The problem is that usually before showing a dialog you will fill out the fields with the existing data. Upon submission of the dialog, you will store the data again. So if you have an EditText_TextChanged sub it will be called already before showing the dialog, namely when initializing the fields in the dialog. This can lead to unexpected side effect until you somehow take precautions.
Is there a good way to handle this besides setting a flag before and after you change the text in code?