Create a list with RecyclerView in Kotlin

Lists are the most common ways of representing collections of similar data . Thus a RecyclerView is a widget that we Android developers have to deal with very frequently . Following are the steps involved in implementing a RecyclerView . In this tutorial we shall implement the recyclerview using Kotlin. …

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 …