Pass Data from one activity to another

Steps 1.Create a new android project with two activities ActivityA and ActivityB and corresponding xml layouts activity_a.xml and activity_b.xml 2.Create an EditText in activity_a to take user input which will be passed to ActivityB 3.On button click get the user input from the EditText and add it to the intent …

Start another activity from one activity

1. Create a new android project with two activities ActivityA and ActivityB and corresponding xml layouts activity_a.xml and activity_b.xml 2. Add a button to the first activity’s layout 3.Perform the action of loading ActivityB on button click There are two ways we can add an action to a button in …

Pass custom object from one activity to another

If you have just started learning to create android apps, probably you are playing a lot around activities . Creating new activities , starting one activity from another , passing values between activities etc . Well, have you ever tried sending your custom java objects to an activity ? The …