

.jpg)
Here we have given edittextfullname and edittextusername.īutton loginbutton : Here we have defined a button with name loginbutton. public class LoginActivity extends AppCompatActivity ĮditText edittextfullname,edittextusername : This is the way to define the views which we have used in the layout and you can give any name you want. Lets initialize them in our LoginActivity. In the previous article, we designed the Login Page and now we will learn how to use Intent to pass data from LoginActivity to the next activity.įirst of all, we have to link the views of activity_login.xml with LoginActivity In activity_login.xml, we have used two EditTexts and one button. Through Intent we can move from one activity to another activity and Intent can also be used to pass the data from one activity to another activity.

In this tutorial, we will learn how to use Intent and then we will pass the data using Intent from one activity to another. Passing data between Activities using Intent in Android
