Android Developers Blog Note

Android Developers Blog

The Android Developers blog is a platform maintained by Google to provide updates, insights, and guides for Android app developers. It publishes regular posts on various topics, including new features in Android, updates to the Android developer tools, developer success stories, and tips on developer best practices. The blog is targeted towards developers working on Android apps and aims to help them optimize their apps for the Android platform. It also encourages developers to share their experiences, ideas, and achievements in app development.

Thread Of Notes

Google announced the preview of the Geospatial API in ARCore for Jetpack XR, bringing its Visual Positioning System (VPS) to Android XR. This technology enables digital content to anchor to the physical world with high accuracy and orientation in supported regions. To demonstrate its potential, a team developed the XR Geospatial Tour, an immersive, hands-free walking tour experience. This demo combines the Geospatial API, Gemini API with Firebase AI Logic, Google Maps Grounding, and the Jetpack XR SDK.The Geospatial API leverages computer vision to provide more accurate location and heading than GPS. The application monitors accuracy thresholds, prompting users to move to recognized outdoor areas if indoors or in unsupported locations. To create the tour itinerary, the Gemini API is prompted with user coordinates to generate structured JSON responses detailing nearby walking tours. Google Maps Grounding is used to anchor the AI's generated locations, preventing inaccuracies.Dynamic voiceovers are implemented using the gemini-2.5-flash-tts model, which can directly return audio data. This adds a present and engaging element to the virtual tour guide. Jetpack Compose for XR is used to render spatial components and bring the tour to life in 3D. The team built custom composables like InfoSphere to display points of interest interactively.By combining Jetpack Compose for XR with the Geospatial API and Gemini, developers can create spatial experiences that understand both user location and context. The availability of the Geospatial API lowers the barrier for building world-scale spatial applications on Android. Developers can apply for the Android XR Developer Catalyst Program to gain access to XREAL Project Aura devkits. This initiative aims to foster innovation in Android XR development.
Android 17 has been released, transitioning the operating system into an intelligence system centered around apps. It emphasizes adaptive-first development with mandatory large-screen resizability and enhances privacy, security, media, camera, and performance. The source code is now available on AOSP for developers to examine. Android 17 integrates hardware, software, and AI to anticipate user needs and offers new opportunities for app engagement. AppFunctions, a platform API, allows apps to contribute capabilities as orchestratable "tools" for AI agents. The Jetpack library simplifies the implementation of AppFunctions through class annotations and KDoc comments.With over 580 million large-screen devices, adaptive development is crucial, hence the shift to an adaptive-first standard. Android 17 removes orientation and resizability restrictions on large screens for apps targeting API level 37, requiring them to adapt to any window size. New multitasking features include App Bubbles for floating apps, a Bubble Bar on large screens to manage these bubbles, and interactive Picture-in-Picture for desktop environments. Activity recreation defaults have been updated to prevent disruptive state loss during configuration changes.The "Continue On" feature allows seamless task transitions between Android devices. Jetpack Compose is now the primary way to build adaptive apps, with all new Android APIs and libraries exclusively for Compose. Legacy View components are now in maintenance mode. Android 17 includes performance improvements, such as stricter app memory limits that will terminate offending processes. Generational garbage collection and a lock-free MessageQueue further enhance performance by reducing CPU usage and UI stutter.
The Android XR ecosystem is experiencing rapid growth with new tooling and expanded engine support. Developer Preview 4 of the Android XR SDK is now available, allowing developers to build and iterate on both immersive and augmented experiences from their laptops. This preview includes libraries for targeting different XR experiences and an emulator in Android Studio for hardware-free testing. The Jetpack Projected library enables developers to extend existing mobile apps for intelligent eyewear, adapting behavior based on device availability. Specialized tools and updated Jetpack Compose Glimmer components facilitate UI building and optimize legibility on optical see-through displays. For immersive experiences, Developer Preview 4 offers Kotlin-first architectural upgrades and an early preview of the Geospatial API for wired XR glasses. This API, combined with ARCore and Google's Visual Positioning System, allows digital content to be anchored to precise real-world locations. Official support has been added for Unreal Engine and Godot, alongside existing Unity support, to ease the transition of existing XR experiences. The Android XR Engine Hub, a desktop tool for Windows, further shortens iteration cycles by enabling real-time testing within engine viewports. The Android XR Developer Catalyst Program is open for applications, offering pre-release hardware and support to selected developers. Developers can begin building now with the Samsung Galaxy XR available and Developer Preview 4 of the SDK. Comprehensive technical sessions are also available on the Android XR YouTube Playlist.
Google I/O has introduced new announcements and resources for Android development, including the expansion of AI and agent-assisted tooling. The Android CLI is now stable at version 1.0, with new features and integrations that enable more efficient navigation and precise output. This version of Android CLI introduces programmatic version lookup, support for Journeys, and bridging capability to allow agents to integrate directly with Android Studio. The Android CLI now integrates seamlessly with Android Studio, providing access to unique tooling such as performance profilers and Compose Previews. Google Antigravity now officially supports Android development with the Android resources bundle, which includes the Android CLI and skills. The Android resources bundle can be installed during onboarding or later from the Settings menu, providing Antigravity with powerful tools and knowledge to perform core tasks. The repository of Android skills is also expanding, with over 17 skills available for areas such as Adaptive UI and Jetpack Compose. Android Bench, a leaderboard for testing LLMs on real-world Android development challenges, has added new models, including Gemma 4 and Gemini 3.5 Flash, to evaluate their performance. The goal of these updates is to support Android developers wherever they choose to build, providing more helpful options for AI assistance and accelerating model improvements. By expanding its AI-assisted Android development offerings, Google is supporting developers in bringing their ideas to life faster and easier than ever before.
Karrot, a popular hyperlocal peer-to-peer marketplace, faced a challenge with a significant portion of its North American users preferring non-English device languages. To enhance accessibility and improve user experience, the company sought a seamless translation solution. They evaluated on-device options like ML Kit and Gemini Nano but found them lacking in either quality or ease of implementation. Choosing Firebase AI Logic with its Android SDK proved to be the most efficient path to integrate AI-powered translations.This integration allowed Karrot to directly access Gemini Flash Lite, delivering accurate translations at conversational speeds. The development process was remarkably straightforward, with engineers building a proof of concept in under three hours. This rapid turnaround time minimized development costs and allowed the team to focus on refining prompts and user experience. The newly implemented translation feature has demonstrably driven sales, increasing purchasing conversion among non-English users.Buyers offered translation functionality were significantly more likely to initiate conversations with sellers. Karrot is now exploring further AI integrations using Firebase AI Logic to streamline other engineering workflows. Future plans include utilizing Server Prompt Templates and Remote Config for faster iteration and reduced operational overhead. This initiative highlights how AI translation can foster community connections and improve global app accessibility.
Ben Weiss, a Senior Developer Relations Engineer, shared Monzo's success story with app performance improvements. Monzo, a UK digital bank, identified app startup time as a critical issue needing attention. They discovered that enabling full R8 optimizations drastically reduced their Application Not Responding rate by 35%. This significant improvement was achieved with a single, simple change.Monzo's primary modification involved switching from the default proguard-android.txt file to proguard-android-optimize.txt. This change removed the -dontoptimize instruction, allowing R8 to perform its intended optimizations. Consequently, Monzo observed an increase in startup reliability, with cold, warm, and hot starts all improving. Launch speed also saw marked improvements, with P50 and P90 times decreasing. Furthermore, the app size was reduced by 9%.After enabling R8 optimizations, Monzo reviewed and refined their Keep configuration files. They removed unnecessary rules, enabling R8 to optimize more of the codebase. To further enhance user experience, Monzo implemented Baseline Profiles. This focused on optimizing scroll and rendering performance for their main feed, a common user journey. The impact was substantial, with P90 and P95 scroll performance becoming significantly faster.Monzo integrated Baseline Profile generation into their release process, ensuring continuous improvement. Weiss recommends that other teams stay updated with modern Android development recommendations. He advises regularly reviewing current practices against Google's latest advice on app performance. Proper documentation of Keep Rules proved essential for Monzo, allowing them to identify and safely remove obsolete rules.