×

Top 25 Android Interview Questions for 2024

1) What is Android?

It is a software package and open-source operating system that is used in mobile devices. It is also a Linux kernel-based system operating system and application executes within its own instance and its own process.

2) What is the Android Architecture?

It is made up of 4 components:
  • Libraries
  • Linux Kernel
  • Android Framework
  • Android Applications

3) What is an Activity?

Activity is a windows, provides platform for graphical user interface.

4) What are the different Activity life cycle methods?

Followings are the android life cycle methods:
  • void onCreate(Bundle savedInstanceState)
  • void onStart()
  • void onRestart()
  • void onResume()
  • void onPause()
  • void onStop()
  • void onDestroy()

5) What is Fragment in android?

Fragment is a part of activity. Fragment provides facility to display multiple screens on single activity. It is also reusable.

6) Who is the founder of Android?

Andy Rubin is the founder of Android .

7) What are the four essential states of an activity?

Four essential states of an activity:
  • Active
  • Paused
  • Stopped
  • Destroyed

8) What is a service in android?

The Service is a component which performs background functionalities without UI interaction. For examples playing music player, calling alarm, doing transaction etc.

9) What is ADB?

ADB stands for Android Debug Bridge which is a command line tool. It is used to communicate with emulator instance. ADB is a client server program that includes three components:
  1. Client
  2. Server
  3. Daemon

10) What are Intents?

Intent is a class used to pass information to interact with android application internal or external world. It is used to launch another activity, invoke web page etc. Intent is two types in android:
  1. Implicit Intent
  2. Explicit Intent

11) What is an Implicit Intent?

Implicit intent provides information of available components. It is used to invoke system components. Example:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com"));  

    startActivity(intent);

12) What is an Explicit Intent?

Explicit intent explicitly specifies and passes the target component name directly in the intent. Example:
Intent intent = new Intent(getApplicationContex(), ActivityABC.class);  

    startActivity(intent);

13) What is the AndroidManifest.xml file?

AndroidManifest.xml file contains information about Android application that the system musk known before code execution. It is declared inside the root directory of Android project.

14) When is the onStop() method invoked?

At the time, When no activity is longer visible to the user.

15) What are the different states where in a process is based?

There are four states :
  • empty process
  • visible activity
  • foreground activity
  • background activity

16) What data types are supported by AIDL?

Data types supported by AIDL are:
  • Map
  • List
  • string
  • charSequence

17) What are the different storage systems in Android?

Following are the storage systems in Android:
  • Shared Preferences
  • Internal Storage
  • External Storage
  • SQLite Databases
  • Network Connection

18) Is it possible to add a fragment without using a user interface?

Yes, It is possible. By the use of add(Fragment, string) method to add a fragment.

19) What are the advantages of Android?

Advantages :
  • Open-source
  • Platform-independent
  • Supports various technologies
  • Highly optimized Virtual Machine

20) What are the core building blocks of android?

Core building blocks of android are:
  • View
  • Intent
  • Service
  • Fragment
  • Activity
  • Content Provider etc

21) Name some exceptions in android?

Exceptions in android are:
  • Inflate Exception
  • Surface.OutOfResourceException
  • WindowManager.BadTokenException
  • SurfaceHolder.BadSurfaceTypeException

22) How will you pass data to sub-activities?

Bundel class is used to pass data from sub-activity (one activity to another). The methods of Bundle class takes data as a form of key and value. Example:
Bundle b=new Bundle();  

b.putString("key", "value");  

i.putExtras(b); //where i is intent

23) What is AAPT?

AAPT stands for Android Asset Packing Tool. It is used for packaging process which includes creating, executing as well as viewing its content.

24) What is the difference between setFlags() and addFlags() on an Intent object?

Difference between setFlags() and addFlags() are: setFlags: we are replacing the oldFlags with a new set of Flags. addFlags: we are appending more flags.

25) What are the different language uses for Android application development?

There are various language are used for Android application development like Java (Android SDK), C/ C++ (Android NDK). But Java is most preferred language for Android application development.

Related Topics

Top 30 Cassandra Interview Questions for 2024

1) Explain. What is Cassandra? Cassandra is an open source data storage system. It was developed at Facebook for inbox search and designed for storing and managing large amount of data. 2)...

5 minutes read.

Top 30 JSF Interview Questions for 2024

1) What is JSF? JSF stands for Java Server Faces is a Java-Based web application framework. JSF (Java Server Faces) provides a facility to connect UI widgets with data sources. 2) What are...

4 minutes read.

W3.CSS Interview Questions

1) What is W3.CSS? W3.CSS stands for Cascading Style Sheet. It is developed by w3schools.com. It is used to create faster, beautiful and responsive websites. 2) What are the features of W3.CSS? W3.CSS...

3 minutes read.

Top 30 RPA Interview questions for 2024

Q1. What is RPA (Robotic Process Automation)? The Robotic Process Automation is a trending technology in the market where: Robotic: Robotic means "machines that copy the human actions." Process: Process means "the sequence of steps which...

12 minutes read.

Top 10 WCF Interview Questions for 2024

  1. What is WCF? Windows Communication Foundation (WCF), earlier known by the name Indigo, is a run-time platform and a set of APIs in the .NET Framework for building, configuring, and...

7 minutes read.

Artificial Neural Network Interview Questions

1. Explain Neural Network?  Neural Network is a sequence of an algorithm that gives its best to recognize the underlying relationship in a data-set through a process. The artificial neural network...

8 minutes read.

Top 30 Web2py Framework Interview Questions for 2024

1) What is Web2py Framework? Web2py is an open source web application framework. It is written in the Python programming language. It allows web developers to design and develop dynamic web...

7 minutes read.

Top 15 Struts Interview Questions for 2024

1) What are the Features of Struts 2? Features of Struts 2 are: Configurable MVC components POJO based actions AJAX support Integration support Various Result Types Various Tag support Theme and...

3 minutes read.

Top 25 R programming Language Interview Questions for 2024

1) What is R programming language? R is an open source programming language. It is software environment for statistical computing and graphics. It compiles and runs on a wide variety of...

4 minutes read.

Top 20 Java Programming Coding Interview Questions for 2024

Coding is an integral part of any programming language. It is the most important phase of an interview. Interviewee checks the capability of thinking of any particular. I think one...

13 minutes read.

Top 15 JSP Interview Questions for 2024

1) What is JSP? It is a technology which is used to create web application like Servlet technology. It provides more functionality than Servlet. It consists of HTML and JSP tags. 2) What are...

3 minutes read.

VB.NET Interview Questions

1) What is VB.NET? VB.NET stands for Visual Basic .NET. It is an object oriented programming language. It is implemented on .NET framework and launched by Microsoft in 2001. 2) Who is...

3 minutes read.

Top 15 Meteor Interview Questions for 2024

1) What is Meteor or MeteorJS? Meteor is a JavaScript platform used for developing web and mobile applications. Applications develop using Meteor framework supports different platforms (like windows, android, ios). Meteor...

4 minutes read.

Top 15 Highcharts Interview Questions for 2024

1) What is Highcharts? Highcharts is a JavaScript based charting library. It is used to enhance web applications by adding interactive charting capability. Highcharts supports a wide range of charts. Charts are drawn using...

2 minutes read.

Top 15 Euphoria Interview Questions for 2024

1) What is Euphoria? Euphoria is a programming language. It is open source, powerful and easy to learn. It stands for End-User Programming with Hierarchical Objects for Robust Interpreted Applications 2) Who...

2 minutes read.

Top 30 Sencha Touch Interview Questions for 2024

1) What is Sencha Touch? Sencha Touch is an UI (User Interface) JavaScript library. It is written in JavaScript. It is used to build mobile interface quickly and easily. It works...

6 minutes read.

Top 10 GWT Interview Questions for 2024

1) What is Google Web Toolkit (GWT)? GWT (Google Web Toolkit) is a development toolkit. It is used to develop Ajax web applications using Java. GWT compiler translates Java sour ce...

2 minutes read.

Top 15 XHTML Interview Questions for 202

1) What is XHTML? XHTML (Extensible Hyper Text Markup Language) it is similar to the HTML but has some strict rule than HTML. It is said to be HTML defined as...

3 minutes read.

Top 30 TypeScript Interview Questions for 2024

1) What is TypeScript? TypeScript is an object-oriented and compiled language. TypeScript is also known as a set of tools. TypeScript is used for application-scale development. 2) What are the features of TypeScript? Features of...

4 minutes read.

Top 29 Phalcon Framework Interview Questions for 2024

1) What is Phalcon? Phalcon is an open source framework based on the MVC (Model-View-Controller) pattern. It is the combination of PHP and C language. It is developed by Andres Gutierrez...

6 minutes read.