Top 25 Android Interview Questions and Answers For Experienced
Last Updated :
01 Nov, 2024
The need for new technologies and their developers is increasing as the world is dynamically transforming digitally. Everyone nowadays relies on apps for a variety of functions, including acquiring information and keeping in touch with one another as well as daily activities like shopping, commuting, and bill payment. But have you wondered how much Android Developers are getting paid to do all these things? PayScale estimates that the annual compensation for an Android Software Engineer in India is ₹3,99,594. Here’s why you need to be thorough with the Top 25 Advanced Android Interview Questions to ace interviews in both product and service-based companies.
Likewise, the average income for an experienced Android developer in India is ₹13,16,973/-. When it comes to Android Developer Salaries in the United States and the United Kingdom, the figures are $113,900 and £35,554, respectively.
Many Android Developers are being hired by big giants like Google, Amazon, Facebook, and others as well as growing startups like Zomato, Paytm, and CRED. If you wish to be employed by one of these companies, go through these top 25 Advanced Android Interview Questions and their Answers to ace interviews
List of 20 Plus Android Interview Questions and Answers
Q1. What are the Lifecycle Events of an Android Activity?
Lifecycle is an Android Architecture Component released by Google to assist all Android developers. The Lifecycle is a class/interface that maintains information about an activity/fragment’s current state and allows other objects to see this state by keeping track of it. The events of an Android component’s lifecycle, such as those of an activity or fragment, are the focus of the lifecycle component.
There are three major classes to deal with it:
- Lifecycle
- Lifecycle Owner
- Lifecycle Observer
A. Lifecycle
A lifecycle is a method that provides information on the Events that took place in relation to an activity or fragment. We have a lifecycle class that uses the enumerations State and Event to track the various components. The lifecycle is determined by Events and States. Every event has a unique state.
|
Event
|
State
|
| OnCreate() |
Called when the activity is first created. |
| OnStart() |
Called when the activity becomes visible to the user. |
| OnResume() |
Called when the activity starts interacting with the user. |
| OnPause() |
Called when the current activity is being paused and the previous activity is resumed. |
| OnStop() |
Called when the activity is no longer visible to the user. |
| OnDestroy() |
Called before the activity is destroyed by the system(either manually or by the system to conserve memory |
| OnRestart() |
Called when the activity has been stopped and is restarting again. |
B. Lifecycle Owner
There is a Lifecycle for every Activity. This Activity will be the lifecycle owner. LifecycleOwner is the one who will be constructed first when an activity is initialized. Android LifeCycle is indicated by any class that implements the LifeCycleOwner interface. Fragments and Activities, for instance, implement the LifeCycleOwner interface as of Support Library version 26.1.0. By using a LifeCycleRegistry and the interface as defined above, one can develop unique LifeCycleOwner components.
C. Lifecycle Observer
The Lifecycle Observer observes the activity, records the lifecycle, and takes action. This lifecycle Observer’s activity is dependent on the lifetime of the lifecycle Owner. Every lifecycle owner has a lifecycle, and the lifecycle observer acts in response to an event or state in the owner’s lifecycle.
Get to know more with an Example: Activity Lifecycle in Android with Demo App
Q2. How can Two Distinct Android Apps Interact?
On Android, there are essentially two ways for apps to communicate with one another:
- Intents, which allow data to be passed from one program to another, and
- Services, which allow one app to offer functionality to other apps.
Q3. How would you communicate between Two Fragments?
All communication between fragments occurs either through a shared ViewModel or through the related Activity. Direct communication between two Fragments should not be allowed.
To communicate across fragments, it is advised to make a shared ViewModel instance. Both fragments have access to the ViewModel via the Activity that contains them. If the data is exposed using LiveData, the other fragment will be pushed with the updated data as long as it is monitoring the LiveData from the ViewModel. The fragments can update data within the ViewModel.
Get to know more with an Example: How to Communicate Between Fragments in Android?
Q4. What is Android Data Binding?
A support library called the Data Binding Library allows you to take advantage of binding UI components to data sources in a layout using a declarative format.
Layouts are frequently defined in activities using code that invokes UI framework APIs. For instance, in the code below, the userName field of the viewModel variable is bound to a TextView widget by calling findViewById() to locate the widget:
TextView textView = findViewById(R.id.sample_text);
textView.setText(viewModel.getUserName());
The subsequent section illustrates how to assign text to the widget directly in the layout file using the Data Binding Library. By doing this, none of the Java/Kotlin code from the previous example is necessary.
<TextView android:text="@{viewmodel.userName}" />
The pros of using Android Data Binding:
- Decreases the amount of boilerplate code, which results in
- Less coupling
- Improved readability
- A custom view with a strong, simple-to-implement custom property
- Faster than findViewById
- The binding extracts the Views with IDs in a single trip across the View Hierarchy.
- When using this method with several Views, findViewById may take longer.
Get to know more with an Example: Data Binding in Android with Example

Android Interview Questions and Answers
Q5. What is a ViewHolder Pattern? Why should We use it?
When the adapter calls the getView() function, it also calls the findViewById() method. As a result of the mobile CPU having to perform such heavy lifting, the application’s performance suffers and battery life degrades. FindViewById shouldn’t be used repeatedly. Instead, utilize the ViewHolder design pattern.
The efficiency of the application improves because a ViewHolder stores a reference to the id of the view resource, eliminating the need to “find” it again later.
Q6. What is the difference between Handler, AsyncTask, and Thread?
- The Handler class offers a straightforward route for sending data to this thread and can be used to register to a thread. When using another background thread, a handler enables you to connect with the UI thread.
- The establishment of a background process and synchronization with the main thread are both handled by the AsyncTask class. Additionally, it allows for reporting on the status of ongoing tasks.
- A developer can employ a Thread, which is the fundamental building block of multithreading, with the following drawback:
- Handle synchronization with the main thread if you post back results to the user interface
- No default for canceling the thread
- No default thread pooling
- No default for handling configuration changes in Android
Q7. Discuss Singletons vs Application Context for the app-global state.
Static singletons may usually perform the same purpose in a more scalable way. If your singleton requires a global context (for instance, to register broadcast receivers), you can provide a Context to the method that retrieves it, which internally uses Context. When creating the singleton for the first time, use getApplicationContext().
However, singletons are difficult to test and, if lazily initialized, introduce an indeterminism state with undetectable side effects. Another issue that has been raised is visibility, and since singletons imply global (= random) access to shared states, subtle flaws may appear when concurrent programs are improperly synchronized.
Despite being a singleton in and of itself, the app context is maintained by the framework and has a clearly defined life cycle, scope, and access path. Therefore, in my opinion, this is the only place where you should maintain an app-global state.
Q8. How can We use AsyncTask in different Activities?
One approach is to build a callback interface using AsynTask in several Activities.
Create a Callback Interface
interface AsyncTaskListener<T> {
public void onComplete(T result);
}
Then in your MainActivity
public class MainActivity extends AppCompatActivity implements AsyncTaskListener<String> {
public void onComplete(String result) {
// your code here
}
}
and TestActivity
public class TestActivity extends AppCompatActivity implements AsyncTaskListener<String> {
public void onComplete(String result) {
// your code here
}
}
And Add to your AsyncTask class:
public class JSONTask extends AsyncTask<String, String, String>
private AsyncTaskListener<String> listener;
public JSONTask(AsyncTaskListener < String > callback) {
this.listener = callback;
}
protected void onPostExecute(String result) {
listener.onComplete(result);
// calling onComplate interface
}
Q9. What is Android Jetpack Architecture Components?
You can create reliable, tested, and maintainable apps with the aid of the libraries that make up the Android Architecture Components. Android Jetpack includes Android Architecture Components.
Following are all of the Android architecture components:
- Data Binding: It aids in declaratively connecting our app’s data sources and UI elements.
- Lifecycles: It controls the fragment and activity lifecycles of our application, endures configuration changes, prevents memory leaks, and quickly loads data into our user interface.
- LiveData: It alerts viewers to any database modifications. Build data objects that alert views to database changes by using LiveData. Everything required for in-app navigation in an Android application is taken care of.
- Paging: It assists in gradually loading data from our data source as needed.
- Room: It is a library for SQLite object mapping. Use it to quickly convert SQLite table data to Java objects while avoiding boilerplate code. The room offers SQLite statement compile-time checks and can produce RxJava, Flowable, and LiveData observables. It maintains UI-related data in a lifecycle-aware manner using the ViewModel. It keeps track of UI-related information that isn’t lost when a program rotates.
- WorkManager: It controls all background tasks in Android under preset conditions.
Read More Here: Jetpack Architecture Components in Android
Q10. What are some differences between Parcelable and Serializable?
We cannot just transfer objects to activities in Android. The objects must either implement the Serializable or Parcelable interface to accomplish this.
An established Java interface is serializable. Simply implement the Serializable interface and provide the override methods. This method’s drawback is that reflection is employed, and it takes time. Serializable is substantially slower than a Parcelable operation.
This is due, in part, to the fact that we explicitly state the serialization procedure rather than letting reflection infer it. Furthermore, it makes sense that the code has been highly optimized with this end in mind.
Also:
- The serializable interface is slower than Parcelable.
- Compared to the Serializable interface, the Parcelable interface requires more effort to implement.
- You can pass a Parcelable array using Intent.
- Implementing a serializable interface is more straightforward.
- The serializable interface produces several temporary objects and significantly increases the amount of garbage collection.
Q11. What is Broadcast Receiver?
Similar to the publish-subscribe design pattern, Android apps have the ability to transmit and receive broadcast messages from other Android apps and the Android system. The receiver component of an Android application is often referred to as the broadcast receiver. This component allows us to register receivers for any application- or system-level event. When that happens, the Android system will inform the registered receivers about the execution of the events in question.
Receivers can pick up one of two different kinds of broadcasts:
- Normal Broadcasts
- Ordered Broadcasts
Get to know more with an Example: Broadcast Receiver in Android With Example
Q12. What is MVVM in Android?
Model—View—ViewModel (MVVM) is the industry-recognized software Architecture Pattern that overcomes all drawbacks of MVP and MVC design patterns. MVVM suggests separating the data presentation logic(Views or UI) from the core business logic part of the application.
The separate code layers of MVVM are:
- Model: This layer is responsible for the abstraction of the data sources. Model and ViewModel work together to get and save the data.
- View: The purpose of this layer is to inform the ViewModel about the user’s action. This layer observes the ViewModel and does not contain any kind of application logic.
- ViewModel: It exposes those data streams which are relevant to the View. Moreover, it serves as a link between the Model and the View.
The description of Model is as follows:
- MODEL: (Reusable Code – DATA) Business Objects that encapsulate data and behavior of application domain, Simply hold the data.
- VIEW: (Platform Specific Code – USER INTERFACE) What the user sees, The Formatted data.
- VIEWMODEL: (Reusable Code – LOGIC) Link between Model and View OR It Retrieves data from Model and exposes it to the View. This is the model specifically designed for the View.
Get to know more with an Example: How to Build a Simple Note Android App using MVVM and Room Database?
Q13. What is the difference between getContext(), getApplicationContext(), getBaseContext(), and this?
- View.getContext(): Returns the context in which the view is executing at the moment. Typically, the active Activity.
- Activity.getApplicationContext(): Returns the context for the entire application (the process all the Activities are running inside of). If you require a context linked to the lifetime of the entire application, not just the current Activity, use this in place of the current Activity context.
- ContextWrapper.getBaseContext(): You use a ContextWrapper if you need access to a Context from within another context. GetBaseContext can be used to retrieve the Context that ContextWrapper is referring to.
This always refers to the current class object. getContext() is not always the same as this. For instance, in the Activity class, you can use this since Activity inherits from Context, but getContext() is not a function that is included in the Activity class.
Q14. What is Android Jetpack?
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries and android architecture components with an addition of the Android KTX library as a single modular entity. Jetpack consists of a wide collection of libraries that are built in a way to work together and make robust mobile applications.
Its software components have been divided into 4 categories:
- Foundation Components
- Architecture Components
- Behavior Components
- UI Components
Key Benefits of Android Jetpack
- Forms a recommended way for app architecture through its components
- Eliminate boilerplate code
- Simplify complex task
- Provide backward compatibility as libraries like support are unbundled from Android API and are re-packaged to androidx.*package
- Inbuilt productivity feature of the Kotlin Integration
Get to know more:
Q15. What is AndroidX?
The new open-source project known as Android Extension Library, also called AndroidX, is a considerable improvement over the original Android Support Library and can be used to create, test, package, and deliver libraries within Jetpack. The AndroidX namespace includes the Android Jetpack libraries. AndroidX is created independently of the Android OS and provides backward compatibility with earlier Android releases, much like the Support Library. The Support Library is entirely replaced by AndroidX packages, which provide feature parity and new libraries.
Additionally, AndroidX has the following functionalities as well:
- A single namespace with the letters AndroidX contains all AndroidX packages. The Support Library packages have been mapped to the equivalent androidx.* packages.
- Unlike the Support Library, AndroidX packages are individually updated and maintained. The AndroidX packages rigorously follow semantic versioning starting with version 1.0.0. The AndroidX libraries for a project can be independently updated.
- All upcoming Support Library work will take place in the AndroidX library. This covers the maintenance of the original Support Library objects as well as the creation of new Jetpack components.
Q16. Explain Dependency Injection.
When a large number of objects have to be created that are dependent on a large number of other objects in a project, it becomes difficult as the project grows larger. With this increasing code base, good external support is required to keep track of everything. That is one of the scenarios in which we employ a Dependency Framework.
If we have two activities, Activity A and Activity B. Both require an object Downloader, which in turn requires the request. The request will now be dependent on Executor and HTTPClient. Dependency Injection is based on the concept of Inversion of Control, which states that a class’s dependencies should come from outside. In other words, no class should instantiate another class. Instead, instances should be obtained from a configuration class.
Dependency Framework is used for the following reasons:
- It facilitates the management of complex dependencies.
- It simplifies unit testing by allowing us to pass all external dependencies so that we can easily use mocked objects.
- It easily manages the object’s scope (lifecycle).
- This is why we need to use a Dependency Injection Framework in Android, such as Dagger.
Q17. What is Singleton Class in Android?
The Singleton Pattern is a software design pattern that restricts the instantiation of a class to just “one” instance. It is used in Android Applications when an item needs to be created just once and used across the board. The main reason for this is that repeatedly creating these objects, uses up system resources. The identical object should therefore only be created once and used repeatedly. It is utilized in situations where we only require a single instance of the class, such as with network services, databases, etc. We, therefore, create a singleton class to implement the Singleton pattern in our project or product. In this article, we’ll look at how to create singleton classes in Java and Kotlin.
Get to know more with an Example: Singleton Class in Android
Q18. What is Jetpack Compose in Android?
Jetpack Compose is a modern UI toolkit that is designed to simplify UI development in Android. It consists of a reactive programming model with conciseness and ease of Kotlin programming language. It is fully declarative so that you can describe your UI by calling some series of functions that will transform your data into a UI hierarchy. When the data changes or is updated then the framework automatically recalls these functions and updates the view for you.
Get to know more with an Example: Basics of Jetpack Compose in Android
Q19. What is Coroutine on Android?
Coroutines are lightweight threads that allow us to do synchronous and asynchronous programming with ease. We can build the main safety and replace callbacks with coroutines without blocking the main thread. The concurrency design pattern of the coroutine allows for code simplification and asynchronous execution, which can offer very high levels of concurrency with a very small overhead.
Get to know more with an Example: Coroutines in Android
Q20. What is Espresso in Android?
Google created the open-source Espresso testing framework for the Android user interface (UI). Espresso is an easy, efficient, and adaptable testing framework. Espresso tests avoid the distraction of boilerplate content, custom infrastructure, or complicated implementation details by stating expectations, interactions, and assertions in a straightforward and concise manner. Espresso tests execute really efficiently! It allows you to forego your waits, syncs, sleeps, and polls while manipulating and making assertions on the application UI while it is idle.
Get to know more with an Example: UI Testing with Espresso in Android Studio
Q21. Types of Notifications in Android.
Notifications could be of various formats and designs depending upon the developer. In General, one must have witnessed these four types of notifications:
- Status Bar Notification: Appears in the same brief layout as the current time and battery percentage.
- Notification Drawer Notification: Appears in the drop-down menu.
- Heads-Up Notification: Appears on the overlay screen, eg: Chat App notification and OTP messages.
- Lock-Screen Notification: Appears on the overlay of the locked screen if enabled.
Get to know more with an Example: Notifications in Android with Example
Q22. What is Firebase Cloud Messaging?
Firebase Cloud Messaging or FCM, originally known as Google Cloud Messaging or GCM, is a free cloud service provided by Google that enables app developers to deliver notifications and messages to users across many platforms, including Android, iOS, and web applications. It is a free real-time method for instantly sending notifications to client applications. Notifications with a payload of up to 4Kb can be properly transmitted via Firebase Cloud Messaging.
Q23. What is the Google Android SDK?
The Google Android SDK is a set of tools that developers use to create apps that run on Android-enabled devices. It includes a graphical interface that simulates an Android-driven portable environment, allowing them to test and debug their applications.
Q24. What is the difference between Volly and Retrofit?
|
Retrofit
|
Volley
|
|
Retrofit can parse many other types of responses automatically like:
- Boolean: Web API response, to be a boolean.
- Integer: Web API response, to be an integer.
- Date: Web API response, to be a Long format date.
- String: Web API response, to be in String format.
- Object: Web API response, to be in a JSON object.
- Collections: Web API response, to be in a String Format.
|
- StringRequest: Request converts the response into a String.
- JsonObjectRequest: Request and response automatically converted into a JSONObject.
- JsonArrayRequest: Request and response automatically converted into a JSONArray.
- ImageRequest: Request converts the response into a decoded bitmap.
|
| Retrofit does not support caching. |
Volley has a flexible caching mechanism. When a request is made through volley first the cache is checked for an appropriate response. If it is found there then it is returned and parsed else a network hit is made. |
| Retrofit does not support any retrying mechanism. But it can be achieved manually by doing some extra code. |
In Volley, we can set a retry policy using the setRetryPolicy method. It supports the customized request timeout, number of retries, and backoff multiplier. |
| Retrofit has full support for Post Requests and Multipart uploads. |
Volley supports both post requests and multipart uploads but for post requests, we have to convert our java objects to JSONObject. Also for multipart uploads, we have to do some extra code and use some additional classes |
Q25. Types of Databases in Android.
Relational, key-value, and object-oriented databases are the three main types of databases used by Android devices.
- SQLite: A well-known relational mobile database that is available on both Android and iOS.
- ORMLite: A lightweight Object Relational Mapper or ORM designed for Java/Kotlin applications, including Android.
- Room: An abstraction layer that sits on top of SQLite. Uses database classes as the primary access point for the persisted data and the means by which the database is maintained.
- Firebase Cloud Firestore or Realtime Database: Comprehensive multifunctional platform with a broad variety of goods, such as Cloud Firestore and Realtime Database.
- Realm: A quick, expandable replacement for SQLite that makes modern mobile applications’ data storing, querying, and synchronizing processes simple.
Similar Reads
Android Tutorial
In this Android Tutorial, we cover both basic and advanced concepts. So whether you are a fresher (graduate) or an experienced candidate with several years of Android Development experience, you can follow this Android tutorial to kick-start your journey in Android app development. Our Android Tutor
15+ min read
Basics
Introduction to Android Development
Android operating system is the largest installed base among various mobile platforms across the globe. Hundreds of millions of mobile devices are powered by Android in more than 190 countries of the world. It conquered around 71% of the global market share by the end of 2021, and this trend is grow
5 min read
History of Android
Android devices form a very essential part of a huge section of mobile phone users in today's world. With the global turmoil in the COVID-19 eras, the population has now entered a digital sphere. Android is the most used OS in smartphones during these days of transformation. But when did something l
15+ min read
Best Way to Become Android Developer – A Complete Roadmap
Android is an open-source operating system, based on the Linux kernel and used in mobile devices like smartphones, tablets, etc. Further, it was developed for smartwatches and Android TV. Each of them has a specialized interface. Android has been one of the best-selling OS for smartphones. Android O
7 min read
Basic Prerequisites of Learning Android App Development
This day's craze of learning any technology is very high among students and Android development is one of the technologies. Nowadays almost everyone has a smartphone so the percentage of people using apps is high these days. So Android app development is an OnDemand technology. Students are also sho
7 min read
Android App Development Fundamentals for Beginners
Android is an operating system that is built basically for Mobile phones. It is based on the Linux Kernel and other open-source software and is developed by Google. It is used for touchscreen mobile devices such as smartphones and tablets. But nowadays these are used in Android Auto cars, TV, watche
6 min read
Android Architecture
Android architecture contains a different number of components to support any Android device's needs. Android software contains an open-source Linux Kernel having a collection of a number of C/C++ libraries which are exposed through application framework services. Among all the components Linux Kern
5 min read
Android System Architecture
The Android software stack generally consists of a Linux kernel and a collection of C/C++ libraries that are exposed through an application framework that provides services, and management of the applications and run time. Linux KernelAndroid was created on the open-source kernel of Linux. One main
3 min read
Android Boot Process
Booting Process In computing, booting is starting up a computer or computer appliance until it can be used. It can be initiated by hardware such as a button press, or by software command. After the power is switched on the computer is relatively dumb, and can read only part of its storage called Rea
4 min read
Difference between Java and Kotlin in Android with Examples
Kotlin KOTLIN is a cross platform, statically types, general purpose programming language with type inference. KOTLIN is designed to interoperate fully with java but type inference allows its syntax to be more concise.KOTLIN is sponsored by JetBrains and Google through the Kotlin Foundation. Java JA
3 min read
Interesting Facts About Android
Android is a Mobile Operating System that was released on 23, September 2008. Android is free, open-source operating system and is based on modified version of Linux kernel. Open Handset Alliance (OHA) developed the Android and Google commercially sponsored it. It is mainly designed for touchscreen
3 min read
Software Setup and Configuration
Android Studio Tutorial
It is stated that "If you give me six hours to chop down a tree then I will spend the first four hours in sharpening the axe". So in the Android Development World if we consider Android Development as the tree then Android Studio should be the axe. Yes, if you are starting Android Development then y
9 min read
File Structure & Components
Core Topics
How Does Android App Work?
Developing an android application involves several processes that happen in a sequential manner. After writing the source code files, when developers click the Run button on the Android studio, plenty of operations and process starts at the backend. Every operation happening in the background is a c
7 min read
Activity Lifecycle in Android with Demo App
In Android, an activity is referred to as one screen in an application. It is very similar to a single window of any desktop application. An Android app consists of one or more screens or activities. Each activity goes through various stages or a lifecycle and is managed by activity stacks. So when
9 min read
Introduction to Gradle
Gradle is an excellent open-source construction tool that is capable of the development of any kind of software. This tool was developed by a gaggle of developers named Hans Dockter, Szczepan Faber Adam Murdoch, Luke Daley, Peter Niederwieser, Daz DeBoer, and Rene Gröschkebefore 13 years before. It
8 min read
What is Context in Android?
Android Applications are popular for a long time and it is evolving to a greater level as users' expectations are that they need to view the data that they want in an easier smoother view. Hence, the android developers must know the important terminologies before developing the app. In Android Progr
9 min read
Bundle in Android with Example
It is known that Intents are used in Android to pass to the data from one activity to another. But there is one another way, that can be used to pass the data from one activity to another in a better way and less code space ie by using Bundles in Android. Android Bundles are generally used for passi
6 min read
Activity State Changes In Android with Example
Prerequisites: Activity lifecycle in android As it is known that every Android app has at least one activity associated with it. When the application begins to execute and runs, there are various state changes that activity goes through. Different events some user-triggered and some system triggered
6 min read
Processes and Application Lifecycle in Android
As an android developer, if one does not know the application lifecycle of android application or does not have in-depth knowledge about it, there are very high chances that the application will not have a good user experience. Not having proper knowledge of the application lifecycle will not affect
7 min read
Desugaring in Android
Google has officially announced Kotlin as a recommended language for Android Development and that's why so many developers are switching from Java to Kotlin for Android development. So day by day new APIs are been introduced in Android by the Google Team and which are available in newer versions of
4 min read
Difference Between AndroidX and Android Support Libraries
Support library packages in Android are a set of code libraries whose prime purpose is to provide backward-compatibility to the code and Android API framework. In the real world, there is a strong possibility that an application that is developed on the latest Android version is used on an older ver
3 min read
Memory Leaks in Android
A memory leak is basically a failure of releasing unused objects from the memory. As a developer one does not need to think about memory allocation, memory deallocation, and garbage collection. All of these are the automatic process that the garbage collector does by itself, but the situation become
7 min read
Layout & View
Layouts in Android UI Design
Layout Managers (or simply layouts) are said to be extensions of the ViewGroup class. They are used to set the position of child Views within the UI we are building. We can nest the layouts, and therefore we can create arbitrarily complex UIs using a combination of layouts. There is a number of layo
2 min read
Android UI Layouts
Layouts in Android is used to define the user interface that holds the UI controls or widgets that will appear on the screen of an android application or activity screen. Generally, every application is a combination of View and ViewGroup. As we know, an android application contains a large number o
5 min read
LinearLayout and its Important Attributes with Examples in Android
LinearLayout is the most basic layout in android studio, that aligns all the children sequentially either in a horizontal manner or a vertical manner by specifying the android:orientation attribute. If one applies android:orientation="vertical" then elements will be arranged one after another in a v
3 min read
Android LinearLayout in Kotlin
Android LinearLayout is a ViewGroup subclass, used to provide child View elements one by one either in a particular direction either horizontally or vertically based on the orientation property. We can specify the linear layout orientation using the android:orientation attribute. All the child eleme
2 min read
Android RelativeLayout in Kotlin
Android RelativeLayout is a ViewGroup subclass, used to specify the position of child View elements relative to each other like (A to the right of B) or relative to the parent (fixed to the top of the parent). Instead of using LinearLayout, we have to use RelativeLayout to design the user interface
4 min read
ConstraintLayout in Android
ConstraintLayout is similar to that of other View Groups which we have seen in Android such as RelativeLayout, LinearLayout, and many more. In this article, we will take a look at using ConstraintLayout in Android. Important Attributes of ConstraintLayout Attributes Description android:id This is u
5 min read
TextView widget in Android using Java with Examples
Widget refers to the elements of the UI (User Interface) that help the user interact with the Android App. TextView is one of many such widgets which can be used to improve the UI of the app. TextView refers to the widget which displays some text on the screen based on the layout, size, colour, etc
4 min read
TextView in Kotlin
Android TextView is simply a view that are used to display the text to the user and optionally allow us to modify or edit it. First of all, open Kotlin project in Android Studio. Following steps are used to create TextView in Kotlin: Add a TextView in activity_main.xml file inside LinearLayout. Add
4 min read
Working With the TextView in Android
TextView in Android is one of the basic and important UI elements. This plays a very important role in the UI experience and depends on how the information is displayed to the user. This TextView widget in Android can be dynamized in various contexts. For example, if the important part of the inform
7 min read
Autosizing TextView in Android
If the user is giving the input and the input needs to be shown as TextView and if the user inputs the stuff which can go out of the screen, then in this case the font TextView should be decreased gradually. So, in this article, it has been discussed how the developer can reduce the size of TextView
6 min read
Intent and Intent Filters
What is Intent in Android?
In Android, it is quite usual for users to witness a jump from one application to another as a part of the whole process, for example, searching for a location on the browser and witnessing a direct jump into Google Maps or receiving payment links in Messages Application (SMS) and on clicking jumpin
4 min read
Implicit and Explicit Intents in Android with Examples
Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio Android | Starting with the first app/android project Android | Running your first Android app This article aims to tell about the Implicit and Explicit intents and how to use them in an and
7 min read
How to Send Data From One Activity to Second Activity in Android?
This article aims to tell and show how to "Send the data from one activity to second activity using Intent" . In this example, we have two activities, activity_first which are the source activity, and activity_second which is the destination activity. We can send the data using the putExtra() method
7 min read
How to open dialer in Android through Intent?
The phone dialer is an activity available with the Android operating system to call a number. Usually, such activity may or may not have an EditText, for taking the number as input, and a Call button. When the user presses the Call button, it invokes the dialer app activity. Use of 'tel:' prefix is
4 min read
Creating Multiple Screen Applications in Android
This article shows how to create an android application to move from one activity to another. Below are the steps for Creating a Simple Android Application to move from one activity to another activity. Step By Step ImplementationStep 1: Create a New Project in Android StudioTo create a new project
9 min read
How to Open Camera Through Intent and Display Captured Image in Android?
Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio Android | Starting with first app/android project Android | Running your first Android app The purpose of this article is to show how to open a Camera from inside an App and click the image
5 min read
Toast & RecyclerView
Toasts for Android Studio
A toast provides a simple popup message that is displayed on the current activity UI screen (e.g. Main Activity). Example: Syntax: // to get Context Context context = getApplicationContext(); // message to display String text = "Toast message"; // toast time duration, can also set manual value in
2 min read
What is Toast and How to Use it in Android with Examples?
Pre-requisites: Android App Development Fundamentals for BeginnersGuide to Install and Set up Android StudioAndroid | Starting with the first app/android projectAndroid | Running your first Android appWhat is Toast in Android? A Toast is a feedback message. It takes a very little space for displayin
6 min read
Android Toast in Kotlin
A Toast is a short alert message shown on the Android screen for a short interval of time. Android Toast is a short popup notification which is used to display information when we perform any operation in our app. In this tutorial, we shall not just limit ourselves by creating a lame toast but also
4 min read
Android | How to Change Toast font?
A Toast is a feedback message. It takes a very little space for displaying while overall activity is interactive and visible to the user. It disappears after a few seconds. It disappears automatically. If user wants permanent visible message, Notification can be used. Toast disappears automatically
3 min read
How to add a custom styled Toast in Android
A Toast is a feedback message. It takes very little space for displaying and it is displayed on top of the main content of an activity, and only remains visible for a short time period. This article explains how to create Custom Toast messages, which has custom background, image, icon, etc, which ar
3 min read
RecyclerView in Android with Example
RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 support packages. It has been created to make possible construction of any lists with XML layouts as an item which can be custo
5 min read
Android | Horizontal RecyclerView with Examples
Recycler View is a ViewGroup added to Android Studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 support packages. It has been created to make possible construction of any lists with XML layouts as an item which can be customiz
4 min read
How to create a nested RecyclerView in Android
A nested RecyclerView is an implementation of a RecyclerView within a RecyclerView. An example of such a layout can be seen in a variety of apps such as the Play Store, where the outer (parent) RecyclerView is of vertical orientation, whereas the inner (child) RecyclerViews are of horizontal orienta
6 min read
How to Create RecyclerView with Multiple ViewType in Android?
RecyclerView forms a crucial part of the UI in Android app development. It is especially important to optimize memory consumption when displaying a long list of items. A RecyclerView inflates a customized list of items, which can have either similar layouts or multiple distinct layouts. Here, we dev
6 min read
RecyclerView using ListView in Android With Example
RecyclerView is a more flexible and advanced version of ListView and GridView. RecyclerView is used for providing a limited window to a large data set, which means it is used to display a large amount of data that can be scrolled very efficiently by maintaining a limited number of Views. In Recycler
6 min read
Fragments & Adapters
Introduction to Fragments | Android
Fragment is a piece of an activity that enables a more modular activity design. A fragment encapsulates functionality so that it is easier to reuse within activities and layouts. Android devices exist in a variety of screen sizes and densities. Fragments simplify the reuse of components in different
5 min read
Fragment Lifecycle in Android
In Android, the fragment is the part of the Activity that represents a portion of the User Interface(UI) on the screen. It is the modular section of the Android activity that is very helpful in creating UI designs that are flexible in nature and auto-adjustable based on the device screen size. The U
8 min read
How to Create a New Fragment in Android Studio?
Android Studio is the official integrated development environment for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development. You can Develop Android App using this. Here, We are going to learn how to create a new Fragment in A
2 min read
How to Create Swipe Navigation in Android?
When talking about Android Apps, the first thing that comes to mind is variety. There are so many varieties of Android apps providing the user with a beautiful dynamic UI. One such feature is to navigate our Android Apps using left and right swipes as opposed to clicking on buttons. Not only does it
6 min read
ViewPager Using Fragments in Android with Example
ViewPager is a layout manager that allows the user to flip left and right through pages of data. It is mostly found in apps like Youtube, Snapchat where the user shifts right - left to switch to a screen. Instead of using activities fragments are used. It is also used to guide the user through the a
7 min read
ArrayAdapter in Android with Example
The Adapter acts as a bridge between the UI Component and the Data Source. It converts data from the data sources into view items that can be displayed into the UI Component. Data Source can be Arrays, HashMap, Database, etc. and UI Components can be ListView, GridView, Spinner, etc. ArrayAdapter is
3 min read
SimpleAdapter in Android with Example
In Android, whenever we want to bind some data which we get from any data source (e.g. ArrayList, HashMap, SQLite, etc.) with a UI component(e.g. ListView, GridView, etc.) then Adapter comes into the picture. Basically Adapter acts as a bridge between the UI component and data sources. Here Simple A
7 min read
SimpleExpandableListAdapter in Android with Example
Android ExpandableListView is a view that shows items as a vertically scrolling two-level list. The basic difference with ListView is that it allows two levels of the display, which can be easily expanded and collapsed by touching to view and their respective children's items. To show the view, Expa
8 min read
AdapterViewFlipper in Android with Example
The AdapterViewFlipper class is a subclass of the ViewAnimator class and is used to flip between 2 or more views, such that only one view is displayed at a time. It is commonly used in slides. It is an element of the transition widget which helps to add transitions on the views. It is mainly useful
4 min read
BaseExpandableListAdapter in Android with Example
In many android apps, the developer may need to show multi-data for huge main data items. i.e. as per our example, under "Programming languages", we need to show "Python", "Java" etc., and under "Relational database" we need to show "Oracle", "MySQL' etc., For that purpose, we can use "BaseExpandabl
9 min read
UI Component & Image Loading Libraries
Spinner in Android with Example
Android Spinner is a view similar to the dropdown list which is used to select one option from the list of options. It provides an easy way to select one item from the list of items and it shows a dropdown list of all values when we click on it. The default value of the android spinner will be the c
4 min read
Spinner in Kotlin
Android Spinner is a view similar to a dropdown list which is used to select one option from the list of options. It provides an easy way to select one item from the list of items and it shows a dropdown list of all values when we click on it. The default value of the android spinner will be the cur
3 min read
Dynamic Spinner in Kotlin
Android Spinner is a view similar to dropdown list which is used to select one option from the list of options. It provides an easy way to select one item from the list of items and it shows a dropdown list of all values when we click on it. Default value of the android spinner will be currently sel
3 min read
How to add Custom Spinner in android?
Spinner is a widget that is used to select an item from a list of items. When the user tap on a spinner a drop-down menu is visible to the user. In this article, we will learn how to add custom spinner in the app. If you want to know more about spinner in detail then click on this link. Approach: Cr
4 min read
How to Create an Alert Dialog Box in Android?
Alert Dialog shows the Alert message and gives the answer in the form of yes or no. Alert Dialog displays the message to warn you and then according to your response, the next step is processed. Android Alert Dialog is built with the use of three fields: Title, Message area, and Action Button. Alert
4 min read
How to Create a Custom AlertDialog in Android?
Sometimes in AlertDialog, there is a need to get input from the user or customize it according to our requirements. So we create custom AlertDialogs. This post will show how to customize the AlertDialogs and take input from it. Below is the step-by-step implementation of the above approach: Step 1:
2 min read
Top 5 Image Loading Libraries in Android
Android is an operating system which is built basically for Mobile phones. It is based on the Linux Kernel and other open-source software and is developed by Google. It is used for touchscreen mobile devices like smartphones and tablets. But nowadays these are utilized in Android Auto cars, TV, watc
5 min read
How to Use Picasso Image Loader Library in Android?
Picasso is open source and one of the widely used image download libraries in Android. It is created and maintained by Square. It is among the powerful image download and caching library for Android. Picasso simplifies the process of loading images from external URLs and displays them on your applic
6 min read
How to Use Glide Image Loader Library in Android Apps?
Glide, like Picasso, can load and display images from many sources, while also taking care of caching and keeping a low memory impact when doing image manipulations. Official Google apps (like the app for Google I/O 2015) are using Glide. In this article, we're going to explore the functionalities o
4 min read
Fresco Image Loading Library in Android with Example
Fresco is one of the famous image loading libraries from URLs in Android. It is a powerful library for displaying and managing images from URLs. This library can load images from Users' devices, servers, and other local sources. The most important feature of this library is to show a placeholder ima
3 min read
Material Design & Bars
Introduction to Material Design in Android
Material Design Components (MDC Android) offers designers and developers a way to implement Material Design in their Android application. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Androi
5 min read
Responsive UI Design in Android
Nowadays every Android UI designer is very serious about his UI design. The path of every project goes through UI design. UI design is the face of every project and every website, app & desktop application. UI is the wall between the User & Back-end where users can interact with the server t
4 min read
Material Design EditText in Android with Example
EditText is one of the important UI elements. Edittext refers to the widget that displays an empty text field in which a user can enter the required text and this text is further used inside the application. In this article it has been discussed to implement the special type of text fields, those ar
5 min read
Theming of Material Design EditText in Android with Example
Prerequisite: Material Design EditText in Android with Examples In the previous article Material Design EditText in Android with Examples Material design Text Fields offers more customization and makes the user experience better than the normal text fields. For example, Icon to clear the entire Edit
4 min read
Key Properties of Material Design EditText in Android
In the previous article Material Design EditText in Android with Examples its been discussed how to implement the Material design EditText and how they differ from the normal EditText. In this article its been discussed on how to customize MDC edit text fields with their key properties. Have a look
4 min read
How to Use Material Text Input Layout in Android?
Material Design Components (MDC Android) offers designers and developers a way to implement Material Design in their Android application. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Androi
3 min read
What Are the Different Types of Bars Available in Android?
Android is an open-source operating system, based on the Linux kernel and used in mobile devices like smartphones, tablets, etc. Further, it was developed for smartwatches and Android TV. Each of them has a specialized interface. Android has been one of the best-selling OS for smartphones. Android O
6 min read
ActionBar in Android with Example
In Android applications, ActionBar is the element present at the top of the activity screen. It is a salient feature of a mobile application that has a consistent presence over all its activities. It provides a visual structure to the app and contains some of the frequently used elements for the use
8 min read
ToolBar in Android with Example
In Android applications, Toolbar is a kind of ViewGroup that can be placed in the XML layouts of an activity. It was introduced by the Google Android team during the release of Android Lollipop(API 21). The Toolbar is basically the advanced successor of the ActionBar. It is much more flexible and cu
9 min read
Difference Between ActionBar and Toolbar in Android
ActionBar ActionBar is the element present at the top of the activity screen. It is a salient feature of an android application that has a consistent presence over all its activities. It provides a visual structure to the app and contains some of the frequently used elements for the users. Android A
3 min read
Working with Google Maps
How to Generate API Key for Using Google Maps in Android?
For using any Google services in Android, we have to generate an API key or we have to generate some unique key for using that service provided by Google. So Maps is one of the famous and most used services provided by Google. Maps can be seen in each and every app provided by Google and we also can
3 min read
How to Add Custom Marker to Google Maps in Android?
Google Maps is used in many apps for displaying a location and indicating a specific location on a map. We have seen the use of maps in many apps that provides services such as Ola, Uber, and many more. In these apps, you will get to see How we can add Custom Marker to Google Maps in Android. What w
5 min read
How to Add Multiple Markers on Google Maps in Android?
Google Map is used in most of the apps which are used to represent many locations and markers on Google Maps. We have seen markers on Google maps for multiple locations. In this article, we will take a look at the implementation of Multiple Markers on Google Maps in Android. What we are going to bui
4 min read
How to Use Different Types of Google Maps in Android?
When we use the default application of Google Maps we will get to see different types of Maps present inside this application. We will get to see satellite maps, terrain maps, and many more. We have seen adding Google Maps in the Android application. In this article, we will take a look at the imple
4 min read
How to Add SearchView in Google Maps in Android?
We have seen the implementation of Google Maps in Android along with markers on it. But many apps provide features so that users can specify the location on which they have to place markers. So in this article, we will implement a SearchView in our Android app so that we can search a location name a
4 min read
How to Add OnClickListener to Marker on Google Maps in Android?
We have seen implementing Marker on Google Maps in Android. Now we will see adding OnClickListener for that marker on our Google Maps. In this article, we will take a look at adding OnClickListener to Google Maps marker in Android. What we are going to build in this article? We will be building a si
3 min read
How to Draw Polyline in Google Maps in Android?
Google Maps is used in many Android applications. While using Google Maps there are many modifications which you will get to see while using Maps in this apps. When we have used Google Maps in different apps such as OLA and Uber we will get to see lines and routes drawn on our Maps. In this article,
4 min read
How to Calculate Distance Between two Locations in Android?
We have seen many apps that use Google Maps. These maps are used to indicate places on Google Maps and also we can use this to calculate the distance between two locations. In this article, we will take a look at calculating the distance between two locations in Android. What we are going to build i
4 min read
How to Draw a Track on Google Maps in Android?
In many android apps, we have seen that there is a route marker from a source location to the destination location. In this article, we will take a look at How we can draw a track on Google Maps in Android. What we are going to build in this article? We will be building a simple application in which
3 min read
How to Add Dynamic Markers in Google Maps with Firebase Firstore?
We have seen adding markers to Google Maps in Android. Along with that, we have also added multiple markers on Google Maps in Android. Many apps use a dynamic feature to add a marker on the Google Maps and update them according to requirements. In this article, we will take a look at adding markers
6 min read
Database
Firebase - Introduction
Firebase is a product of Google which helps developers to build, manage, and grow their apps easily. It helps developers to build their apps faster and in a more secure way. No programming is required on the firebase side which makes it easy to use its features more efficiently. It provides services
5 min read
Adding Firebase to Android App
There are various services offered online such as storage, online processing, realtime database, authorisation of user etc. Google developed a platform called Firebase that provide all these online services. It also gives a daily analysis of usage of these services along with the details of user usi
3 min read
How to use Firebase UI Authentication Library in Android?
Firebase UI is a library provided by Firebase for Android apps which makes or so many tasks easy while integrating Firebase in Android. This library provides so many extra features that we can integrate into our Android very easily. In this article, we will take a look at using this library for addi
10 min read
User authentication using Firebase in Android
Firebase is a mobile and web application development platform. It provides services that a web application or mobile application might require. Firebase provides email and password authentication without any overhead of building backend for user authentication. Steps for firebase user authentication
7 min read
Firebase Authentication with Phone Number OTP in Android
Many apps require their users to be authenticated. So for the purpose of authenticating the apps uses phone number authentication inside their apps. In phone authentication, the user has to verify his identity with his phone number. Inside the app user has to enter his phone number after that he wil
9 min read
How to Use Firebase Firestore as a Realtime Database in Android?
Firebase Firestore is the backend database that is used to add, read, update and delete data from Android. But in Firebase Firestore there is a separate method that is used to read data from Firebase Firestore in Realtime Database. In this article, we will read data from Firebase Firestore in Realti
6 min read
How to Create Dynamic Auto Image Slider in Android with Firebase?
We have seen many apps that display images in the slider format as that of banners which slide automatically. This type of feature of the auto image slider is seen in many E-commerce sites. This feature is seen in many apps which are having images in them. In this article, we will take a look at How
9 min read
How to Create Dynamic WebView in Android with Firebase?
Converting a website into an application seems like a basic task to do on Android. With the help of WebView, we can show any webpage in our Android Application. We just have to implement the widget of WebView and add the URL inside the WebView which we have to load. So if you are looking for loading
6 min read
How to Create Dynamic PDF Viewer in Android with Firebase?
If you are creating apps for students or for educational purposes then you need to add some PDF files for displaying some data inside our app. These PDF files are updated on regular basis. For loading this PDF from the server we prefer to use PDF Viewer which will load the PDF from the URL in Androi
8 min read
Advance Android
Shared Preferences in Android with Example
One of the most Interesting Data Storage options Android provides its users is Shared Preferences. Shared Preferences is the way in which one can store and retrieve small amounts of primitive data as key/value pairs to a file on the device storage such as String, int, float, Boolean that make up you
8 min read
Internal Storage in Android with Example
The aim of this article is to show users how to use internal storage. In this article will be creating an application that can write data to a file and store it in internal storage and read data from the file and display it on the main activity using TextView. Saving and loading data on the internal
5 min read
External Storage in Android with Example
Android gives various options for storing apps data which uses a file system similar to the disk-based system on computer platforms App-Specific storage: Store data files within internal volume directories or external. These data files are meant only for the app's use. It uses internal storage direc
9 min read
How to Save ArrayList to SharedPreferences in Android?
SharedPreferences in Android is local storage that is used to store strings, integers, and variables in phone storage so that we can manage the state of the app. We have seen storing simple variables in shared prefs with key and value pair. In this article, we will see How we can store ArrayList to
7 min read
Preferences DataStore in Android
Preference Data Store is used to store data permanently in android. Earlier we had to Shared Preferences for the same but since it is deprecated we are using Data Store now. A sample video is given below to get an idea about what we are going to do in this article. Note that we are going to implemen
4 min read
How to Add Views Dynamically and Store Data in Arraylist in Android?
Dynamic Views are created when we don't want to have repeating XML code. In this article we will create a separate layout and inflate them inside a LinearLayout after that we will store the user data in an ArrayList as then display them as toast. A sample video is given below to get an idea about wh
4 min read
Volley Library in Android
Volley is an HTTP library that makes networking very easy and fast, for Android apps. It was developed by Google and introduced during Google I/O 2013. It was developed because there is an absence in Android SDK, of a networking class capable of working without interfering with the user experience.
5 min read
JSON Parsing in Android
JSON (JavaScript Object Notation) is a straightforward data exchange format to interchange the server's data, and it is a better alternative for XML. This is because JSON is a lightweight and structured language. Android supports all the JSON classes such as JSONStringer, JSONObject, JSONArray, and
4 min read
JSON Parsing in Android using Volley Library
JSON is also known as (JavaScript Object Notation) is a format to exchange the data from the server. The data stored in JSON format is lightweight and easy to handle. With the help of JSON, we can access the data in the form of JsonArray, JsonObject, and JsonStringer. In this article, we will specif
6 min read
Jetpack & Architecture
Introduction to Android Jetpack
The Android support libraries are used in almost all android applications to overcome the compatibility issues across different Android OS versions and devices. These libraries also facilitate users to add various kinds of updated widgets in the application. Over time, these libraries are updated ac
6 min read
Foundation Components of Android Jetpack
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries, android architecture components with an addition of the Android KTX library as a single
7 min read
Jetpack Architecture Components in Android
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries, android architecture components with an addition of the Android KTX library as a single
10 min read
Behaviour Components of Android Jetpack
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries, android architecture components with an addition of the Android KTX library as a single
10 min read
UI Components of Android Jetpack
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries, android architecture components with an addition of the Android KTX library as a single
14 min read
How to Install Android Studio Canary Version?
Android Studio is an official development environment for building Android apps which is provided by Google. This IDE is built on JetBrains IntelliJ IDEA software which is designed for Android development. This version of Android Studio comes with a modern UI toolkit for building native Android UI.
4 min read
Android Architecture Patterns
When developers work on a real mobile application whose nature is dynamic and will expand its features according to the user's need, then it is not possible to write core logic in activities or fragments. To structure the project's code and to give it a modular design(separated code parts), architec
5 min read
MVC (Model View Controller) Architecture Pattern in Android with Example
Developing an android application by applying a software architecture pattern is always preferred by the developers. An architecture pattern gives modularity to the project files and assures that all the codes get covered in Unit testing. It makes the task easy for developers to maintain the softwar
8 min read
MVP (Model View Presenter) Architecture Pattern in Android with Example
In the initial stages of Android development, learners do write codes in such a manner that eventually creates a MainActivity class which contains all the implementation logic(real-world business logic) of the application. This approach of app development leads to Android activity gets closely coupl
12 min read
MVVM (Model View ViewModel) Architecture Pattern in Android
Developers always prefer clean and structured code for projects. Organizing the codes according to a design pattern helps in the maintenance of the software. By having knowledge of all crucial logic parts of the android application, it is easier to add and remove app features. Further, design patter
7 min read
App Publish & App Monetization
How to Publish Your Android App on Google Play Store?
Nowadays smartphones are among the most essential gadgets for users. Over 60% of people sleep with their phones by their side and check it first thing in the morning. Almost all businesses, including retail stores, have mobile apps to keep their audience engaged. Various applications like games, mus
5 min read
How to Publish Your Android App on Amazon App Store for Free?
To publish your android application on the play store, you need to pay some particular amount to Google, and only then google will let you publish your application. Here, the big question is, what if you don't have money to publish your application? what will you do in that situation? The best solut
3 min read
Overview of Google Admob
In order to earn money from the Android app or game, there are several ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another conventional approach to earn money from the Android app is by integrating an advertisement which is known as Google AdMob. Google Ad
4 min read
Android | AdMob Banner Ads for Android Studio
Banner ads are a rectangular image or text ads that occupy a spot within an app's layout. If you're new to mobile advertising, banner ads are the easiest to implement. This article shows you how to integrate banner ads from AdMob into an Android app.Example: First, create a new project in Android St
2 min read
Android | AdMob Interstitial Ads for Android Studio
Interstitial ads are full-screen ads that cover the whole UI of the app. This article shows you how to integrate Interstitial ads from AdMob into an Android app. Example - First Create a new Project in Android Studio and add the following codes to import the google Mobile Ads SDK. In the project-lev
2 min read
How to Integrate Google Admob Rewarded Video Ads in Android?
In order to earn money from the Android app or game, there are many ways such as in-app purchases, Sponsorship, Advertisements, and many more. But there is another popular method to earn money from the Android app is by integrating an advertisement e.g. known as Google AdMob. Google AdMob is designe
7 min read
Overview of Facebook Audience Network
In order to earn money from the Android or iOS app or game, there are many ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another popular method to earn money from the Android or iOS app is by integrating a third party advertisement e.g known as Facebook Audi
4 min read
How to Integrate Facebook Audience Network (FAN) Banner Ads in Android?
In order to earn money from the Android app or game, there are many ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another popular method to earn money from the Android app is by integrating a third party advertisement e.g known as Facebook Audience Network (
7 min read
How to Integrate Facebook Audience Network (FAN) Native Ads in Android?
In order to earn money from the Android app or game, there are many ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another popular method to earn money from the Android app is by integrating a third-party advertisement e.g known as Facebook Audience Network (
9 min read
How to Integrate Facebook Audience Network (FAN) Interstitial Ads in Android?
In order to earn money from the Android app or game, there are many ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another popular method to earn money from the Android app is by integrating a third party advertisement e.g known as Facebook Audience Network (
6 min read
Projects
How to Build a Tic Tac Toe Game in Android?
In this article, we will be building a Tic Tac Toe Game Project using Java and XML in Android. The Tic Tac Toe Game is based on a two-player game. Each player chooses between X and O. The Player plays one move at a time simultaneously. In a move, a player can choose any position from a 3x3 grid. The
9 min read
How to create a Face Detection Android App using Machine Learning KIT on Firebase
Pre-requisites: Firebase Machine Learning kitAdding Firebase to Android AppFirebase ML KIT aims to make machine learning more accessible, by providing a range of pre-trained models that can use in the iOS and Android apps. Let's use ML Kit’s Face Detection API which will identify faces in photos. By
9 min read
How to Build a Simple Augmented Reality Android App?
Augmented Reality has crossed a long way from Sci-fi Stories to Scientific reality. With this speed of technical advancement, it's probably not very far when we can also manipulate digital data in this real physical world as Tony Stark did in his lab. When we superimpose information like sound, text
11 min read
How to Build a Grocery Android App using MVVM and Room Database?
In this article, we are going to build a grocery application in android using android studio. Many times we forget to purchase things that we want to buy, after all, we can’t remember all the items, so with the help of this app, you can note down your grocery items that you are going to purchase, by
15+ min read
Android Projects - From Basic to Advanced Level
Android, built on a modified version of the Linux kernel, is the go-to operating system for touchscreen mobile devices like smartphones and tablets. For anyone aspiring to become an Android developer, diving into Android projects is essential. Engaging in a variety of projects, from simple apps to c
11 min read
Top 25 Android Interview Questions and Answers For Experienced
The need for new technologies and their developers is increasing as the world is dynamically transforming digitally. Everyone nowadays relies on apps for a variety of functions, including acquiring information and keeping in touch with one another as well as daily activities like shopping, commuting
15+ min read
Top 50 Android Interview Questions and Answers - SDE I to SDE III
A Linux-based open-source OS, Android was created by Andy Rubin and became one of the most popular smartphone operating systems. With 71 percent of the market share worldwide, Android is on top. Because it is on top in the smartphone OS, Android development is always in demand. If you are seeking a
15+ min read