What's new in Android
By Google for Developers
Key Concepts
- Compose First: The strategic shift to make Jetpack Compose the standard for all Android UI development.
- Intelligence System: The evolution of Android from a traditional OS to an AI-orchestrated platform.
- AppFunctions: A new API/Jetpack library enabling apps to act as on-device servers for AI agents (e.g., Gemini).
- Memory Management: New Android 17 tools and limits to handle stricter hardware constraints.
- Adaptive UI: Frameworks (Navigation 3, FlexBox, Grid) for building apps that scale across phones, foldables, tablets, cars, and XR.
- R8 Optimization: Advanced code shrinking and obfuscation tools for performance and APK size reduction.
1. UI Development: The "Compose First" Era
Android is officially moving to a "Compose First" strategy. While View-based components (Fragments, RecyclerView, MaterialView) are not being deprecated or removed, they are now in maintenance mode, receiving only critical bug fixes.
- Tooling: New Android Studio tools are being introduced to assist in converting XML layouts to Compose, utilizing project context to automate the migration and providing screenshot tests for verification.
- Compose 1.11 Updates: Includes the new Styles API (separating behavior from appearance), improved Shared Element Transitions, and
TextFieldState. - Performance: Benchmarks show significant performance gains with Compose, with companies like TikTok reporting 20–30% performance improvements and up to 78% speed-ups in specific UI rewrites.
2. Performance and Memory Optimization
With rising hardware costs and RAM constraints, Android 17 introduces stricter memory management.
- Memory Limits: Android 17 will enforce limits on apps with runaway resource usage (e.g., memory leaks). Impacted sessions will be flagged with the
MemoryLimiterstring. - Profiling: New profiling triggers for "cold start" and "excessive CPU" usage are available. LeakCanary is now integrated into the Android Studio profiler, with Gemini support to suggest fixes for detected leaks.
- ART Improvements: Android Runtime (ART) now features generational garbage collection and a new lock-free
MessageQueueimplementation, which can be up to 5,000 times faster in high-contention scenarios. - R8 Insights: New Play Console insights and a Configuration Analyzer help developers optimize code shrinking. Tinder reported a 28% reduction in APK size after using these tools to identify problematic "keep" rules.
3. The Intelligence System: AI and Agents
Android is evolving into an "Intelligence System" where AI agents act as orchestrators across apps.
- AppFunctions: This API allows apps to expose specific capabilities (e.g., "list topics," "bookmark article") to AI agents like Gemini. This enables cross-app task completion without requiring custom code for every integration.
- On-Device AI: Gemini Nano (based on open Gemma models) is available on over 140 million devices. The ML Kit Prompt API allows apps like WebEx and Photoshop to leverage on-device models for tasks like translation or layer renaming without server costs.
- Cloud AI: For more complex tasks, Firebase AI logic allows integration with cloud-based Gemini models, supporting features like personalized educational support (e.g., ABCmouse).
4. Privacy and Security
Android 17 introduces several layers of protection:
- OTP Protection: SMS one-time passwords are now protected by a three-hour delay for third-party apps, encouraging the use of Credential Manager for passkeys and verified identity.
- Privacy-Preserving Pickers: New APIs (e.g., Eye Dropper API, specific contact pickers) allow apps to access only the necessary data without requesting broad permissions like
READ_CONTACTSor full screen capture. - Native Security: Native libraries are now loaded as read-only to prevent tampering.
5. Multidevice Ecosystem and Adaptive UI
Android is designed for a diverse ecosystem including large screens, wearables, and cars.
- Adaptive Libraries: Navigation 3, FlexBox, and Grid layouts are the recommended tools for building responsive UIs. Navigation 3 now supports deep links and scene decorators for global navigation control.
- Wear OS 7: Offers 10% better battery life and improved UI automation, allowing apps to bridge media controls and notifications from phones to watches automatically.
- Android XR: The Android XR SDK supports immersive and augmented experiences. New features include real-time geometry creation (to keep app sizes small) and the Glimmer library for building interactive components in display glasses.
- Automotive: Increased parity between Android Auto and "Cars with Google built-in" via the Car App Library 1.9, which adds 10 new flexible components for driving-optimized UIs.
Synthesis
The core takeaway is that Android development is shifting toward a highly integrated, AI-driven, and performance-conscious model. Developers are encouraged to adopt Jetpack Compose as their primary UI toolkit, leverage AppFunctions to participate in the agentic AI ecosystem, and utilize the new Android Performance Analyzer to ensure their apps remain efficient under the stricter memory requirements of Android 17. By focusing on these modern frameworks, developers can ensure their apps are "future-proofed" for the expanding range of Android form factors.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.