Android Open Source Library Interview Questions: Core Topics for Developer Interviews
Retrofit
Basic Usage
A standard GET request workflow with Retrofit looks like this:
// Build Retrofit instance
Retrofit githubRetrofit = new Retrofit.Builder()
.baseUrl("https://api.github.com/")
.build();
// Create API service implementation
GitHubApi gitHubService = githubRetrofit.create(GitHubApi.class);
// Generate and e ...
Posted on Fri, 24 Jul 2026 16:07:16 +0000 by Arryn
Calling Android Toast Notifications from Unity C# Scripts
Overview
This article demonstrates how to invoke native Android functionality directly from Unity by leveraging the AndroidJavaClass and AndroidJavaObject APIs. Specifically, we'll implement a wrapper that allows displaying Toast notifications—a common Android UI component for showing brief messsages to users.
Implementation Details
Core Concep ...
Posted on Thu, 23 Jul 2026 16:34:22 +0000 by freelancedeve
Integrating Native Libraries in Android Projects
Integrating Native Libraries in Android Projects
Modern Android applications often require native code for performance-critical operations or to leverage existing C/C++ libraries. This guide covers the process of biulding and bundling native shared libraries (.so files) into an Android project.
Setting Up Native Code
Create a native source file ...
Posted on Wed, 22 Jul 2026 16:21:52 +0000 by dila125
Generating and Scanning QR Codes on Android with ZXing
ZXing (Zebra Crossing) is an open-source Java library designed for processing 1D and 2D barcode images. It supports a wide range of formats, including UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, and QR Code. This library facilitates barcode scanning and decoding using a device's camera, making it a staple choice for Android barcode applicati ...
Posted on Fri, 17 Jul 2026 17:25:07 +0000 by updwebmaster
Android Automation Testing with Python-uiautomator2
Introduction
Python-uiautomator2 is an open-source automation testing tool specifically designed for testing native Android applications.
Supported Platforms and Languages
Python-uiautomator2 wraps Google's built-in uiautomator2 testing framework, providing convenient Python interfaces. It allows testers to write Python test code directly on a ...
Posted on Tue, 14 Jul 2026 17:08:03 +0000 by hearn
Dependency Injection with Hilt in Android Applications
Dependency Setup
Add the following dependencies to your module-level build.gradle file:
dependencies {
implementation("com.google.dagger:hilt-android:2.44")
annotationProcessor("com.google.dagger:hilt-android-compiler:2.44")
}
Apply the Hilt plugin in the same file:
plugins {
id("com.android.application&quo ...
Posted on Tue, 14 Jul 2026 16:19:28 +0000 by surfer
Implementing the Model-View-Presenter Pattern for Android Login Functionality
Context and Motivation
Many developers are familiar with MVP (Model-View-Presenter) as an evolution of MVC, offering clearer separation of concerns, particularly for decoupling the Model from the View. This architectural pattern has gained widespread acceptance among Android developers primarily because it structures code more clearly, even tho ...
Posted on Sat, 11 Jul 2026 17:44:25 +0000 by sam06
Analyzing and Fixing Android Handler Memory Leaks
The Mechanism of Memory LeaksIn Java, non-static inner classes maintain an implicit reference to their enclosing outer class. Within the Android framework, a Handler is frequently defined as a non-static inner class to simplify access to UI components. When a method like postDelayed is invoked, the Handler instance is encapsulated within a Mess ...
Posted on Fri, 10 Jul 2026 17:24:21 +0000 by gitosh
Displaying Real-time Progress on Android SeekBar
Displaying Real-time Progress on Android SeekBar
The SeekBar is a fundamental UI component in Android that allows users to select a value by dragging a thumb along a track. A common requirement is to display the current progress value dynamically, updating in real-time as the user interacts with the slider. This guide demonstrates how to achiev ...
Posted on Fri, 10 Jul 2026 16:10:42 +0000 by phigga
Migrating to AndroidX in Android Projects
At Google I/O 2018, AndroidX was introduced as the official replacement for the legacy Android Support Library. This migration involves ranaming packages from android.* to androidx.*, while keeping all class names, method signatures, and field names unchanged. Only package names and Maven artifact identifiers are affected.
Key Changes in Androi ...
Posted on Tue, 07 Jul 2026 16:33:16 +0000 by satya61229