Most Frequently Asked Interview Questions in Android

Posted on December 28, 2016

Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers. Initially developed by Android Inc., which Google backed financially and later bought in. Android was unveiled in 2007 along with the founding of the Open Handset Alliance: a consortium of hardware, software, and telecommunication companies devoted to advancing open standards for mobile devices The first Android-powered phone was sold in October 2008.  Android is open source and Google releases the code under the Apache License. This open source code and permissive licensing allows the software to be freely modified and distributed by device manufacturers, wireless carriers and enthusiast developers. Additionally, Android has a large community of developers writing applications (“apps”) that extend the functionality of devices, written primarily in a customized version of the Java programming language These factors have allowed Android to become the world’s most widely used smartphone platform.

Given below are some interview questions that are often asked in Android.

1. What is Android?

It is an open-sourced operating system that is used primarily on mobile devices, such as cell phones and tablets. It is a Linux kernel-based system that’s been equipped with rich components that allows developers to create and run apps that can perform both basic and advanced functions.

2. Describe Android application Architecture.

Android application architecture has the following components. They are as follows :

  • Services − It will perform background functionalities
  • Intent − It will perform the inter connection between activities and the data passing mechanism
  • Resource Externalization − strings and graphics
  • Notification − light, sound, icon, notification, dialog box, and toast
  • Content Providers − It will share the data between applications
3. What is an Activity?

Activity performs actions on the screen. If you want to do any operations, we can do with activity.

 4. What Is the Google Android SDK?

The Google Android SDK is a toolset that developers need in order to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment, allowing them to test and debug their codes.

5. What is the Android Architecture?

Android Architecture is made up of 4 key components:

  • Linux Kernel
  • Libraries
  • Android Framework
  • Android Applications
6. What is intent?

An Intent is exactly what it describes. It’s an “intention” to do an action.
An Intent is basically a message to say you did or want something to happen. Depending on the intent, apps or the OS might be listening for it and will react accordingly.
There are two types of intents in android:

  • Implicit Intent
  • Explicit Intent
7. What is an explicit intent?

Android Explicit intent specifies the component to be invoked from activity. In other words, we can call another activity in android by explicit intent.

8. What is an implicit intent?

Implicit Intent doesn’t specify the component. In such case, intent provides information of available components provided by the system that is to be invoked.

9. What is an android manifest file?

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app’s code.

10. What does SDK stand for?

SDK stands for Software Development Kit.

11. What is AVD?

AVD stands for Android Virtual Device (emulator). The Android SDK is a mobile device emulator- a virtual mobile device that runs on your computer.

12. Differentiate between activities and services.

Activities can be closed or terminated anytime the user wishes. On the other hand, services are designed to run behind the scenes, and can act independently. Most services run continuously, regardless of whether there are certain or no activities executed.

13. What is the importance of XML based layouts?

The use of XML-based layouts provides a consistent and somewhat standard means of setting GUI definition format. In common practice, layout details are placed in XML files while other items are placed in source files.

14. What is the importance of settings permissions in app development?

Permissions allow certain restrictions to be imposed primarily to protect data and code. Without these, codes could be compromised, resulting to defects in functionality.

15. What is the function of an intent filter?

Because every component needs to indicate which intents they can respond to, intent filters are used to filter out intents that these components are willing to receive. One or more intent filters are possible, depending on the services and activities that is going to make use of it.

16. What do you think are some disadvantages of Android?

Given that Android is an open-source platform, and the fact that different Android operating systems have been released on different mobile devices, there’s no clear cut policy to how applications can adapt with various OS versions and upgrades. One app that runs on this particular version of Android OS may or may not run on another version. Another disadvantage is that since mobile devices such as phones and tabs come in different sizes and forms, it poses a challenge for developers to create apps that can adjust correctly to the right screen size and other varying features and specs.

17. What are the four essential states of an activity?
  • Active–if the activity is at the foreground
  • Paused–if the activity is at the background and still visible
  • Stopped– if the activity is not visible and therefore is hidden or obscured by another activity
  • Destroyed– when the activity process is killed or completed terminated
18. What is container in Android?

The container holds objects, widgets, labels, fields, icons, buttons. etc.

19. What are shared preferences?

Shared preferences are the simplest mechanism to store the data in XML documents.

20. How to launch an activity in android?

Using with intent, we can launch an activity.
Intent intent= new Intent(this, SecondActivity. class);

21. What are the different storages available in Android?

Shared Preferences, Internal Storage, External Storage, SQLite Databases and Network Connection.

22. What folders are important in an android project?


23. What is a sticky Intent?

A Sticky Intent is a broadcast from send Sticky Broadcast() method such that the intent floats around even after the broadcast, allowing others to collect data from it.

24. What is a Fragment?

A fragment is a part or portion of an activity. It is modular in a sense that you can move around or combine with other fragments in a single activity. Fragments are also reusable.

25. What language is supported by Android for application development?

The main language supported is Java programming language. Java is the most popular language for app development, which makes it ideal even for new Android developers to quickly learn to create and deploy applications in the Android environment.


Leave a Reply

Your email address will not be published.