且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NullPointerException 和 findViewById()

更新时间:2023-11-19 12:17:40

您没有初始化 myEditText 引用到活动中的任何 EditText 对象.

you didn't initialize myEditText reference to any EditText Object in the activity which holds it..

请确保您初始化它并在正确的位置使用该语句.

kindly be sure you initialize it and you use that statement in the right place.