15 Beginner Android Interview Question

Ranjeet Kumar yadav
2 min readJan 14, 2023

--

  1. What is Android?

Android is an open-source operating system for mobile devices, based on the Linux kernel.

2. What is an Activity in Android?

An activity is a single, focused task that a user can interact with. It represents the UI of an app.

3. What is a Service in Android?

A service is a background task that runs independently of the activity and does not have a user interface.

4. What is an Intent in Android?

An intent is an abstract description of an operation to be performed, used to start activities, services, and send broadcast messages.

5. What is a Fragment in Android?

A fragment is a reusable UI component that represents a portion of an activity’s UI.

6. What is a Content Provider in Android?

A content provider is a component that provides data to other applications.

7. What is a Broadcast Receiver in Android?

A broadcast receiver is a component that listens for and responds to broadcast messages.

8. What is an ADB in Android?

ADB stands for Android Debug Bridge, a command-line tool used to communicate with an Android device for debugging purposes.

9. What is the AndroidManifest.xml file?

The AndroidManifest.xml file is an XML file that contains important metadata about an Android app, such as the app’s package name, version, and required permissions.

10. What is the difference between a Fragment and an Activity?

A fragment represents a reusable portion of an activity’s UI, while an activity represents a single, focused task that a user can interact with.

11 . What is the difference between a Service and an Intent Service?

A service is a background task that runs independently of the activity and does not have a user interface, while an intent service is a background task that processes work off of the main thread and stops itself when the task is complete.

12.What are the different types of Android Layouts?

There are several types of layouts in Android, including LinearLayout, RelativeLayout, and ConstraintLayout.

13.What is the difference between a Fragment and an Activity?

An Activity represents a single screen in an app with a user interface, while a Fragment represents a portion of an Activity’s user interface.

14.What is an Android Virtual Device (AVD)?

An Android Virtual Device (AVD) is an emulator that allows developers to test their apps on different Android devices and configurations.

15.What is a Shared Preference in Android?

A Shared Preference is a key-value store that allows developers to save small amounts of data in an app, such as user settings or configuration data.

--

--