Working with Android Bitmaps: Creation, Loading, and Rendering

Creating a New Bitmap Instance A fresh bitmap can be alloacted by specifying dimensions and a pixel configuration. Here, a mutable 24-bit RGB image without an alpha channel is generated: int canvasWidth = 400; int canvasHeight = 300; Bitmap mutableBitmap = Bitmap.createBitmap(canvasWidth, canvasHeight, Bitmap.Config.RGB_565); The RGB_565 confi ...

Posted on Sun, 04 Oct 2026 16:13:16 +0000 by sankaty

Android Manifest Component Declaration: Provider, Receiver, and Service Elements

Content Provider Declaration The <provider> element declares a content provider component, which is a ContentProvider subclass that provides structured access to data managed by an application. All content providers must be declared in the manifest file; otherwise, the system will not recognize them and they will not execute. Only declare ...

Posted on Sun, 04 Oct 2026 16:13:45 +0000 by Jabop

Localized Date and Time Formatting in Android Using DateFormat

Locale-Aware Time FormattingWhile SimpleDateFormat is useful for custom patterns, it does not automatically adapt to regional conventions. The DateFormat class resolves this by offering built-in locale support, adjusting string representations dynamically based on the user's language and region settings.Package AvailabilityThe DateFormat class ...

Posted on Thu, 01 Oct 2026 16:59:03 +0000 by koencalliauw

Android Development Essentials: Telephony, Storage, and XML Manipulation

Initiating Phone CallsTo implement a dialer functionality, an Intent with the ACTION_CALL action is required. This necessitates the CALL_PHONE permission in the AndroidManifest.xml file.<uses-permission android:name="android.permission.CALL_PHONE" />The following implementation demonstrates how to extract a phone number from an EditText, ...

Posted on Thu, 01 Oct 2026 16:13:39 +0000 by kritro

AOSP 8.1.0_r1 Compilation: Environment Setup and Troubleshooting

Acquiring the Source Code The Android Open Source Project (AOSP) codebase is hosted by Google. For users in regions with restricted access, domestic mirrors such as Tsinghua University (https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/) or USTC (https://mirrors.ustc.edu.cn/aosp/) are recommended alternatives. Source retrieval requires the repo too ...

Posted on Wed, 30 Sep 2026 16:17:08 +0000 by ShawnD

Scaling Appium Automation with Selenium Grid

Registering Appium Nodes to the Grid Hub To integrate Appium nodes with a Selenium Grid Hub, you must define node configurations in JSON format. When running multiple Appium instances on a single host, each instance requires its own port and corresponding configuration file. Use the following command to launch an Appium node, ensuring you speci ...

Posted on Mon, 28 Sep 2026 16:23:33 +0000 by shubham.amola

Android Application Surface Creation Mechanism

Surface Core ConceptA Surface represents a raw buffer managed by the screen compositor (SurfaceFlinger). It acts as the canvas where producers (like MediaPlayer, OpenGL, or Camera) draw content. Understanding the relationship between SurfaceFlinger and Surface is crucial for Android graphics architecture.ViewRoot Establishment and IPCWhen the U ...

Posted on Sun, 27 Sep 2026 16:17:14 +0000 by ginga8

Integrating Android Architecture Components: ViewModel, LiveData, and Data Binding

Managing Lifecycle-Aware Application State Core ViewModel Implementation The ViewModel class acts as a lifecycle-conscious container for UI-related data. It survives configuration changes such as screen rotations without triggering recreation. package com.tech.samples.ui; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecyc ...

Posted on Thu, 24 Sep 2026 16:55:30 +0000 by motofzr1000

Android Data Binding: A Comprehensive Technical Guide

Data Binding addresses a significant pain point in Android UI development by providing native support for the MVVM architectural pattern. This framework enables seamless integration between the UI layer and data layer without requiring major refactoring of existing code. This approach may gradually diminish the relevance of dependency injection ...

Posted on Tue, 22 Sep 2026 16:46:57 +0000 by aktell

Custom Single Choice Dialog in Android

In Android application development, dialogs serve as common UI components for displaying information or collecting user input. Among various dialog elemants, single-choice selection controls allow users to pick one option from multiple choices. This article demonstrates how to create a customized dialog containing a single choice selector in An ...

Posted on Tue, 22 Sep 2026 16:35:38 +0000 by SoccerGloves