I am facing a problem as I try to implement a login screen in my Android app. The user has to fill out the login and password field with the string \"user\". Whenever I run thi
add method
myMethod() { //Code hear }
To Activity and on your xml add
android:onClick="myMethod"
To your button