Beginner Android Interview Questions
Android Interview Question–Answer set covering Beginners (Fresher/Junior) and Experienced (Mid–Senior) levels. Simple language, Interview-ready answers
Search
Android Interview Question–Answer set covering Beginners (Fresher/Junior) and Experienced (Mid–Senior) levels. Simple language, Interview-ready answers
Android is an open-source mobile operating system developed by Google. It is primarily used for smartphones, but it also powers tablets, smart TVs, wearables, and even car infotainment systems.
Because Android is open-source, developers can build highly customizable applications and manufacturers can adapt it to different hardware.
Android officially supports multiple languages, but the most commonly used are:
🔸 Java – Traditional and widely used
🔸 Kotlin – Modern, concise, and preferred by Google
Today, Kotlin is recommended for new Android development because it reduces boilerplate code and improves safety.
APK (Android Package Kit) is the installable file format for Android applications.
It contains compiled code, resources, assets, and manifest information required to run an app.
Android applications are built using four core components:
🔸 Activity
🔸 Service
🔸 Broadcast Receiver
🔸 Content Provider
Each component serves a specific purpose in the app lifecycle.
An Activity represents a single screen with a user interface.
For example, login screen, home screen, or settings screen are all activities.
Intent is a message object used to communicate between Android components.
It tells the system what action to perform and where to perform it.
🔸 Explicit Intent – Used within the same app
🔸 Implicit Intent – Used to interact with system features or other apps
Implicit intents are commonly used for actions like opening a browser or sharing content.
A Fragment is a reusable part of UI that lives inside an Activity.
It helps create flexible and modular UI designs.
🔸 Activity – Independent component
🔸 Fragment – Dependent on Activity
🔸 Activity – Full screen
🔸 Fragment – Part of a screen
Fragments are commonly used in modern apps for better UI reuse.
It is a core configuration file that defines app details such as activities, permissions, services, and app entry points.
Context provides access to application resources, system services, and environment information.
It is essential for tasks like launching activities or accessing resources.
Toast is a short popup message displayed to the user for brief feedback.
RecyclerView is used to display large lists efficiently by reusing views instead of creating new ones.
🔸 RecyclerView is more flexible
🔸 Better performance
🔸 Highly customizable
RecyclerView is preferred in modern Android apps.
Layout defines the UI structure of an Android app.
🔸 LinearLayout
🔸 RelativeLayout
🔸 ConstraintLayout
🔸 FrameLayout
A powerful layout that reduces nested views and improves UI performance.
Used to store small key-value data such as user settings.
AVD (Android Virtual Device) is an emulator used to test apps without a physical device.
Gradle is the build automation tool used to manage dependencies and build Android projects.
It contains auto-generated resource IDs for layouts, strings, images, etc.
Logcat shows logs and debugging information, helping developers troubleshoot issues.
ANR (Application Not Responding) occurs when the UI thread is blocked for too long.
Stores UI-related data and survives configuration changes like screen rotation.
An observable data holder that is lifecycle-aware and updates UI safely.
A set of libraries, tools, and best practices to simplify Android development.
Permissions control access to sensitive features like camera, storage, or location.
Ensures consistent UI size across different screen densities.
Pixel (px) is a device-dependent unit, not recommended for layouts.
Kotlin is a modern, safe, and concise language officially supported for Android.
🔸 Linux Kernel
🔸 Hardware Abstraction Layer (HAL)
🔸 Android Runtime (ART)
🔸 Native Libraries
🔸 Application Framework
🔸 Applications
Android Runtime executes DEX bytecode efficiently and improves performance.
🔸 ART uses Ahead-of-Time (AOT) compilation
🔸 Improves app startup and runtime performance
MVVM stands for Model – View – ViewModel
🔸 Separates UI and business logic
Allows UI components to bind directly to data sources.
Hilt is a dependency injection library built on Dagger.
A design pattern where dependencies are provided externally.
Handles reliable background tasks, even after app restarts.
Room is an ORM over SQLite that simplifies database access.
🔸 Parcelable is faster
🔸 Recommended for Android
Used for code shrinking, obfuscation, and optimization.
A type-safe HTTP client for API communication.
A low-level HTTP networking library.
Handles asynchronous tasks without blocking UI thread.
🔸 Coroutines are lightweight
🔸 Better performance and scalability
Used for asynchronous data streams.
A component that follows Android lifecycle events.
Listens for system-wide events like network or battery changes.
A service that runs with a visible notification.
Occurs when unused objects are not garbage collected.
🔸 LeakCanary
🔸 Android Profiler
Generates binding classes to avoid findViewById().
🔸 DataBinding supports expressions
🔸 ViewBinding is lightweight and faster
Manages safe and structured in-app navigation.
Opens a specific app screen using a URL.
Messages sent from server using Firebase Cloud Messaging (FCM).
Backend platform for authentication, database, analytics, and notifications.
Google securely manages app signing keys.
App Store Optimization improves visibility and downloads.
🔸 Use ConstraintLayout
🔸 Avoid memory leaks
🔸 Optimize images
🔸 Use background threads
🔸 Apply lazy loading
Get the latest news right in your inbox. We never spam!
Comments