Fading Coder

One Final Commit for the Last Sprint

Resolving VNDK ABI Extending Changes Error in Android 9 P

Problem Description When attempting to add new interfaces to files within the system/core/liblog directory of Android source code, compatibility issues arise during compilation. The build process fails with the following error: QSSI: not enabled for msm8953_64 target as vendor/qcom/proprietary/relea...

Understanding JNI and Creating Your First Native Library in Android

The Java Native Interface (JNI) enables Java applications to interact with native code written in languages like C or C++. This mechanism allows Java programs to invoke functions in native libraries and vice versa. Core Concepts Purpose of JNI: Integrating existing C/C++ libraries to reuse efficient...

Defining Custom App Permissions

This document describes how app developers can use Android's security features to define their own permissions. By defining custom permissions, apps can share their resources and functionality with other apps. For more details, see the Permissions Overview. Background Android is a permission-separat...

Implementing Local Broadcasts in Android

Local Broadcast Implementation Local broadcasts using LocalBroadcastManager are confined to the application context. Sending a Broadcast Intent intent = new Intent("com.example.update"); LocalBroadcastManager.getInstance(BroadActivity2.this).sendBroadcast(intent); Registering a Receiver mB...

Configuring Activity Components in AndroidManifest.xml

Element Syntax and Hierarchy Declare Activity subclasses within the <application> parent element using the following structure: <activity android:name=".MainActivity" android:exported="true" android:theme="@style/CustomTheme" android:screenOrientation="por...

Core Principles and Practical Implementation of Jetpack Compose

Fundamental Concepts The Shift from Inheritance to Composition In traditional Android development, extending functionality often relied on deep inheritance hierarchies, which are notoriously fragile. Jetpack Compose prioritizes composition over inheritance. It builds the UI tree by executing composa...

Core Java and Android Interview Concepts for Senior Developers

Data Types and Access Control Java distinguishes between primitive and reference data types. Primitives include byte (8-bit), short (16-bit), int (32-bit), long (64-bit), float (32-bit), double (64-bit), char (16-bit), and boolean. Reference types encompass classes, interfaces, arrays, enumerations,...

Android Activity Stacks, Process Lifecycles, and Inter-Process Data Transfer

Task Management and Navigation Stacks When users interact with an application, they engage with a sequence of screens represented by Activity instances. The system organizes these instances into a task—a cohesive unit that arranges activities in a last-in-first-out (LIFO) structure known as the back...

Android Built-in Drawable Icon Reference Guide

Overview This guide demonstrates how to programmatically generate a comprehensive reference table of Android's built-in drawable icons. By leveraging Java reflection to inspect the android.R.drawable class, deevlopers can catalog all available system icons for documentation or dynamic UI generation...

Android User Authentication with Login and Registration

AuthenticationActivity import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors;...