Skip to content
  • android
  • Flutter
  • Kotlin
  • Firebase
  • Laravel
Droidmonk
Learn Android with Java and Kotlin
 
  • android
  • Flutter
  • Kotlin
  • Firebase
  • Laravel
Home Archive for category "Basics"

Category: Basics

Basics, Kotlin

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. …

Continue reading"Create a list with RecyclerView in Kotlin"
Basics, Kotlin

Load a new Activity , pass value to it in kotlin

How to start a new activity ? How to pass a value from an activity to the other ? Probably these questions have come to your mind if you have just started using Kotlin for developing android apps . By the end of this post you’ll have all the answers …

Continue reading"Load a new Activity , pass value to it in kotlin"
Basics, Kotlin

Kotlin-android-extensions: accessing widgets from a Kotlin activity

We no more need findViewById() again , as Kotlin Android Extensions is here . Probably you have used the Butterknife library to avoid writing findViewById() again and again . But with Kotlin Android Extensions plugin its even easier . The process can be summerized in three steps as below : …

Continue reading"Kotlin-android-extensions: accessing widgets from a Kotlin activity"
Basics, Kotlin

An activity with a Button and a TextView in android USING KOTLIN

Are you planning to use Kotlin for your next app , or excited to explore some Kotlin; but not sure where to start !! Let us start with a simple android activity . A simple activity Below is our MainActivity which does nothing except loading the layout from activity_main.xml layout …

Continue reading"An activity with a Button and a TextView in android USING KOTLIN"
Basics, Firebase, Login

Firebase Authentication with Google Sign in

1. Create a new android project 2. Set up Firebase Authentication for android 3. Check if the user is already logged in -Create instances of FirebaseAuth and FirebaseAuth.AuthStateListener (e.g. mAuth and mAuthStateListener repectively) -Add the mAuthStateListener to the mAuth object inside onStart() -Remove the auth state listener inside onStop() 4. …

Continue reading"Firebase Authentication with Google Sign in"
Basics, Login

Step by step guide to Implement Google Login in Android .

Integration of social login is one of the most common tasks in app development , whether it is a mobile app or a website. Social login makes it easier for the user to login and try the app . Thus in this post we’ll learn to implement google login for …

Continue reading"Step by step guide to Implement Google Login in Android ."
Basics

Create Tabs using ViewPager , TabLayout and FragmentPagerAdapter in Android

1. Create a new android project 2. Add ViewPager and TabLayout widget to the layout of the activity i.e main_activity.xml 3. Initialize the UI components in MainActivity.java 4. Lets create the fragments to be used as pages for the viewpager. 5. Create an adapter for the viewpager. 6. Set the …

Continue reading"Create Tabs using ViewPager , TabLayout and FragmentPagerAdapter in Android"
Basics

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 …

Continue reading"Pass Data from one activity to another"
Basics

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 …

Continue reading"Start another activity from one activity"
Basics

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 …

Continue reading"Pass custom object from one activity to another"




Recent Posts

  • Middleware to verify ownership
  • Password reset
  • Email Verification
  • Delete a product ad
  • Edit a product ad

Categories

  • android
  • Basics
  • Firebase
  • Flutter
  • jetpack
  • Kotlin
  • Laravel
  • Login
  • Uncategorized
Back to Top
©droidmonk.com
Powered by Fluida & WordPress.