Fragment Navigation Techniques in Android

1. Overview When developing Android applications inovlving multiple Fragments and Activities, managing navigation becomes a critical task. This article explores four distinct Fragment navigation scenarios: 1. Navigating between Fragments within the same Activity 2. Launching a new Activity from a Fragment 3. Starting a specific Fargment in a n ...

Posted on Thu, 10 Sep 2026 16:18:36 +0000 by andynick

Integrating Legacy Android Views with Jetpack Compose

When migrating an Android application to Jetpack Compose, it is often necessary to reuse existing XML layouts or custom Views within the new declarative UI. The AndroidView composable facilitates this interoperability by allowing developers to embed standard Android Views directly into a Compose hierarchy. Previewing Legacy Layouts To preview a ...

Posted on Wed, 09 Sep 2026 16:13:31 +0000 by gatoruss

Building a Hierarchical Tree View with Multi-Selection Capability in Android

Overview Creating nested navigation structures is a frequent requirmeent in mobile application design. This guide outlines the process of implementing a recursive list using RecyclerView that accommodates multiple item selection states simultaneously. Data Model Construction A stable data structure is crucial for managing hierarchy. We define a ...

Posted on Mon, 07 Sep 2026 16:05:43 +0000 by mcl

Understanding Android Coordinate Systems for View Manipulation

Understanding Android Coordinate Systems for View Manipulation Android applications utilize two primary coordinate systems that developers must understand to effectively manipulate UI components. These coordinate systems enable precise control over element positioning, which is essential for implementing features like view scrolling, touch int ...

Posted on Sat, 05 Sep 2026 16:50:48 +0000 by carlmcdade

Reverse Geocoding with Baidu Maps API in Android When Geocoder Fails on Android 8.0+

Applications may encounter issues where the native Geocoder class fails to resolve latitude and longitude coordinates into address information on Android 8.0 and later versions. When this occurs, a viable alternative is to leverage the Baidu Maps Web Service API for reverse geocoding. To use the Baidu Maps API, you first need a developer accoun ...

Posted on Thu, 03 Sep 2026 16:25:04 +0000 by nemethpeter

Integrating Java Methods in Unity C# via AndroidJavaObject and AndroidJavaClass

We cnotinue from the previous article where we created a JAR file and placed it in Unity. The current setup includes a simple UI and a script attached to the UseJavaExample GameObject. Below is the Unity API for calling Java code: void Start() { // Calling static methods AndroidJavaClass javaClass = new AndroidJavaClass("your.class ...

Posted on Mon, 31 Aug 2026 16:44:20 +0000 by lynwell07

Resolving Duplicate Class Conflicts in Jetpack Lifecycle Components

Build Environment Overview The following environment configuration was utilized when encountering the compilation failure: Android Studio Version: Bumblebee | 2021.1.1 Patch 1 Build Number: AI-211.7628.21.2111.8139111 Runtime: OpenJDK 11.0.11+9-b60-7590822 amd64 OS: Windows 10 Memory Allocation: 1280MB Cores: 6 Compilation Error Description U ...

Posted on Sun, 30 Aug 2026 16:47:58 +0000 by mmoore

Integrating QQ Connect and WeChat SDK for Social Login and Sharing on Android

QQ Connect Integration Resolving QQ Zone Sharing Issues When sharing to QQ Zone, a common pitfall causes the share dialog to fail silent. The mistake involves passing an image URL string directly instead of using a list. The incorrect approach uses: params.putString(QzoneShare.SHARE_TO_QQ_IMAGE_URL, "image_link_here"); This will not ...

Posted on Sat, 29 Aug 2026 16:25:43 +0000 by abnfire

Comprehensive Guide to Android Notifications Implementation

Notifications serve as a primary mechanism for Android applications to display messages outside the standard user interface. They typically appear in the status bar at the top of the screen, providing users with reminders, communication from others, or timely information from the app. Users can interact with notifications by tapping them to ope ...

Posted on Thu, 27 Aug 2026 16:47:08 +0000 by marijn

Custom AutoCompleteTextView with KMP Algorithm Implementation

Enhanced AutoCompleteTextView Component with KMP Pattern Matching This implementation enhances the standard Android AutoCompleteTextView by integrating the Knuth-Morris-Pratt (KMP) algorithm for efficient text patern matching. The component addresses a common bug where filtered results remain visible after clearing the input field. public class ...

Posted on Thu, 27 Aug 2026 16:29:51 +0000 by stukov