Posts

Android Activity Lifecycle

Image
                 "Android Activity Lifecycle" if we are new to Android development then we should learn what an Activity is in Android and what is the lifecycle of an Activity. In this blog, we will learn about, What is an activity  in Android? What is the Activity Lifecycle? Activity Lifecycle : To understand the activity lifecycle, consider an example of a human being. As human beings, we go through certain stages of our life starting from as a kid to a teenager. From an adult and then to an old person. These are the phases or states of life we go through. Similarly, for Activity in Android, we go through state changes in the total duration of the activity. An Android activity undergoes through a number of states during its whole lifecycle. The following diagram shows the whole Activity lifecycle:                                         ...

Android Core Building Blocks

Image
Android Core Building Blocks : An Android Component is a simply piece of code that has well defined life cycle. Android Manifest.xml File :    manifest file which contains the description of each component and how they interact.  The manifest file also contains the app’s metadata, its hardware configuration, and  platform requirements, external libraries, and required permissions. The basic components of any android application :  Activities Intent and broadcast receivers Services Content Providers Widgets and Notifications     1)  Activities :   Whenever we open an Android application, then you see some UI drawn over our screen.  That screen is called an Activity.   Activities are said to be the presentation layer of our applications.An activity is a class that represents a single screen.  For example , when we open our Gmail application, then we see our emails on the screen. Those emails are present in an Activity. If w...

How to implement Login and signup with Firebase Authentication in android studio.

Image
I n this blog, we will be learning how to  login and authenticate  in our Android application but with the help of  Firebase.   Following is how the flow of this blog looks like: ·           Introduction to Firebase ·           Login and Authentication in Firebase ·           Example - Email login and registration ·           Closing notes  Introduction to Firebase   Firebase was developed in 2011 to create and provide support for mobile and web applications.Later on, in 2014, it was acquired by Google. It gives you a number of facilities that can be used for the fast development of your applications. So, all you need to do is build applications fastly without thinking of managing infrastructure. Following are the products of Firebase that can be used in any applicatio...