Getting weird text back with EditText.toString() method in Android project. Why?

前端 未结 5 504
刺人心
刺人心 2020-12-11 13:08

I appear to have a fundamental gap in my understanding of an EditText object. I have an Activity+Layout with a single EditText object. After I type a few characters into t

5条回答
  •  臣服心动
    2020-12-11 13:54

    You can't use the 'toString'-method on this, use 'getText().toString()' in stead.

提交回复
热议问题