I am getting findViewByID returns null while running android application. "Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference".
Solution:
Make sure call findViewById() below the setContentView() function.
How to fix FindViewByID returns null in android studio?