×

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 Drupal Interview Questions for 2024

1) What is Drupal? Drupal is an open source CMS (Content Management System) framework. It is written in php and provides rich set of tools to create web sites. 2) What are...

4 minutes read.

Top 30 VB Script Interview Questions for 2024

1) What is VB Script? VBScript stands for Visual Basic Scripting Language. It is a light version of Microsoft Visual Basic. It is a client side scripting Language. 2) What is the...

5 minutes read.

Top 15 Ext Js Interview Question for 2024

1) What is Ext Js? Ext Js refers to Extended JavaScript. Ext JS is a JavaScript framework used to built interactive cross platform web application. 2) What are the features of Ext...

3 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 30 Perl interview questions for 2024

1) What is Perl? It is a programming language which is used for web development, system administration, GUI development and etc. It is also known as cross-platform programming language. 2) What are the...

4 minutes read.

C++ | C Plus Plus Interview Questions for 2024

1) Write a program in C++ to print "Hello World"? #include <iostream.h>     #include <conio.h>   void main()    {       clrscr();       cout << "Hello World";     getch();     } 2) Write a program in C++ to enter two integers and find their sum and average ? #include <iostream.h>   #include <conio.h>   void main()   {   clrscr();   int x,y;   float sum,average;   cout << "Enter 2 integers : " << endl;   cin>>x>>y;   sum=x+y;   average=sum/2;   cout <<"The sum is:"<< sum << endl;   cout <<"The average is:"<< average << endl;   getch();   } 3) Write a program in...

5 minutes read.

Top 20 HTTP Interview Questions for 2024

1) What is HTTP? HTTP stands for Hypertext Transfer Protocol. It is a set of rules for transferring of data on WWW (World Wide Web). 2) What are the basic Features of...

4 minutes read.

Top 16 Groovy interview Questions for 2024

1) What is Groovy? Groovy is an object oriented programming language. It is based on java platform. It can also be used as scripting language. 2) Who designed the Groovy? James Strachan designed...

2 minutes read.

Top 15 Electron Interview Question for 2024

1) What is Electron? Electron is an open source library developed by Github. It is used to develop cross platform desktop application. 2) Which technology Electron uses? Electron uses Chromium and Node.js with...

3 minutes read.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 minutes read.

Top 40 IoT Interview Questions and Answers in 2024

Q.1 What is IoT? IoT stands for the Internet of things refers to the interconnection of the network of various devices that can recognize, collect and transfer data over the internet...

13 minutes read.

Top 31 PHP Interview Questions for 2024

1) What is PHP? PHP is a object-oriented scripting language, open source, interpreted and executed at server side. It is also used to develop web applications. 2) What are the features of PHP? Features...

4 minutes read.

Top 15 Xamarin Interview Questions for 2024

1) What is Xamarin? Xamarin is a .NET framework. It allows to create an application that run on multiple platforms. Xamarin Tutorial uses C# language and .NET framework to deliver native...

2 minutes read.

Top 14 XSL Interview Questions for 2024

1) What is XSL? XSL stands for Extensible Stylesheet Language. It is used for expressing stylesheets like CSS which describes how to display an XML of given type. 2) What is XSLT? XSLT...

4 minutes read.

Top 30 Fortran Interview Questions for 2024

1) What is Fortran? Fortran is general purpose, high-level programming language which is used for numeric and scientific computing. 2) What are the features of Fortran programming language? Features of Fortran language are: ...

4 minutes read.

Top 30 Web Service Interview Questions for 2024

1) What is a Web Service? Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word...

5 minutes read.

Top 15 Framework7 Interview Questions for 2024

1) What is Framework7? Framework7 is an open source mobile HTML framework. It is used todevelop hybrid mobile apps for iOS and Android devices. 2) Why, framework7 is popular? There are various reasons...

8 minutes read.

Top 28 LISP Interview Questions for 2024

1) What is LISP? LISP is the high-level programming language after Fortran. LISP is stands for List Processing. This programming language was invented by John McCarthy in 1958 at the Massachusetts Institute of...

3 minutes read.

Top 15 KnockoutJS Interview Questions for 2024

1) What is KnockoutJS? It is a JavaScript library which is based on MVVM pattern that helps developers in building rich and responsive websites. 2) Who is the author of KnockoutJS? Steve Sanderson is...

2 minutes read.

Top 40 TensorFlow Interview Questions and Answers

Commonly Asked TensorFlow Interview Questions for Fresher Q1. What is TensorFlow? TensorFlow is the machine learning library developed by Google's brain team, it supports multiple abstraction levels, and we can choose the...

13 minutes read.