Posts

Showing posts with the label Android - Login Screen Tutorial

Android - Login Screen Tutorial

Image
A login application is the screen asking your credentials to login to some particular application. You might have seen it when logging into facebook,twitter e.t.c This chapter explains, how to create a login screen and how to manage security when false attempts are made. First you have to define two TextView asking username and password of the user. The password TextView must have  inputType  set to password. Its syntax is given below − <EditText android:id = "@+id/editText2" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:inputType = "textPassword" /> <EditText android:id = "@+id/editText1" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> Define a button with login text and set its  onClick  Property. After that define the function mentioned in the onClick property in the java file. <Button ...