Interview Questions

AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions Network Architect Interview Questions

Top 25 Android Interview Questions for 2022

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.