Android alert dialog using Kotlin

During the flow of any app we often need to prompt the user to make some decision e.g. Deleting a file , posting comment etc . Below is the most simple way to show a promt . Here we are using AlertDialog to show a single button dialog , we …

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 …