Recent Posts
Archives

Posts Tagged ‘WebGPU’

PostHeaderIcon [GoogleIO2026] What’s new in Android

Lecturer

Nick Butcher is a Product Manager at Google focused on Jetpack Compose and Android UI, based in London. He previously served for over a decade as an Android Developer Relations Engineer, contributing extensively to Material Design advocacy, open-source projects such as the Plaid sample application demonstrating advanced animations and patterns, and official Compose samples. His work bridges design and engineering, emphasizing productive toolkits for native interfaces. Ash Nohe is a Senior Android Developer Relations Engineer at Google specializing in core OS experiences. Daniel Galpin is a Developer Advocate at Google, known for covering platform updates, performance, media, and ecosystem topics through technical writing and conference presentations.

Abstract

This article examines the principal announcements from Google’s overview of Android platform evolution at Google I/O 2026. It analyzes the formal shift to a Compose-first development model, performance and memory optimizations introduced with Android 17, the integration of agentic AI capabilities that reposition Android as an intelligent system, and the expanding multi-device adaptive ecosystem spanning large screens, Wear OS, XR, cars, and desktop experiences. The discussion situates these changes within broader industry pressures around hardware constraints, developer productivity, and user trust, drawing solely on the presented technical details and case studies.

Compose-First Development and Tooling Advances

Android’s recommended native stack—Kotlin, Jetpack, and Jetpack Compose—has matured over five years into the preferred foundation for building performant, device-optimized interfaces. The platform team now positions Compose as the standard for all Android UI work. New platform APIs, libraries, tools, and guidance will ship exclusively for Compose, while view-based components and related libraries (Fragments, RecyclerView, Material view components) enter maintenance mode. They will receive only critical bug fixes; no new features are planned. Existing view-based code is not deprecated and may remain, yet teams are encouraged to migrate screens to Compose when touching them in order to gain maintainability and performance benefits.

Compose 1.10 and 1.11 introduce substantial capabilities. The experimental styles API standardizes styleable attributes, separating component anatomy and behavior from visual appearance. It supports state-driven styling with built-in animation of state changes and automatically minimizes recompositions for performance. Future Material component support is planned. Shared-element transitions, text-field enhancements, the retain API, and more deterministic testing APIs further strengthen the toolkit. Performance gains appear across common user journeys—scroll jank, startup speed, and hybrid View-Compose UIs. Open-source benchmarks comparing real-world View and Compose implementations corroborate these improvements; most gains materialize simply by adopting the latest Compose version.

Production evidence reinforces the technical claims. TikTok reported that expressive Compose APIs enabled rewrites that improved maintainability while reducing page-load times by 20–30 percent, with one case achieving a 78 percent speedup. Complementary tooling accelerates migration: Android Studio agents will soon leverage project-specific knowledge of styles and resources, and generate screenshot tests to validate visual fidelity after conversion. An existing skill already assists XML-to-Compose translation.

R8 remains central to APK size and runtime efficiency. New Play Console insights surface optimization opportunities, while the R8 configuration analyzer scores obfuscation, shrinking, and optimization effectiveness and flags overly broad keep rules. Tinder, already invested in R8, removed a single problematic keep rule and realized a 28 percent APK-size reduction together with lower ANR and cold-start rates. Grab’s nine-million-line codebase similarly benefited from R8 enablement (25 percent fewer ANRs, 16 percent smaller APK, 27 percent faster startup after baseline-profile work). A new skill equips AI agents to work with the analyzer, lowering the barrier to effective configuration.

Memory, Performance, and Platform Foundations in Android 17

Rising hardware costs and constrained RAM supply elevate memory efficiency as a first-order concern. Android 17 introduces memory limits that primarily affect apps exhibiting runaway leaks or excessive consumption; affected sessions report “memory limiter” via ApplicationExitInfo. Profiling Manager gains anomaly and out-of-memory triggers that yield app-specific heap dumps, alongside cold-start and excessive-CPU triggers. LeakCanary integration inside the Android Studio Profiler, augmented by Gemini explanations and fix suggestions, accelerates diagnosis. Play Console will surface memory telemetry, and Studio will receive smarter debugging tools, preparing developers for stricter platform policies later in the year.

Platform-level improvements complement app-side efforts. Image and notification custom-view sizes are restricted; oversized content is stripped. ART’s garbage collector adopts more frequent, less intensive young-generation collections, improving both memory behavior and performance; these changes reach more than a billion devices via Google Play system updates. Targeting Android 17 disables reflective modification of static final fields, enabling more aggressive ART optimizations. A lock-free Android message-queue implementation reduces UI jank and yields dramatic speed-ups (up to 5 000×) under high contention.

GPU strategy centers on Vulkan as the native API. OpenGL and WebGPU layer atop it; ANGLE translates OpenGL commands for apps not yet migrated. An idiomatic Kotlin WebGPU Jetpack library lowers the barrier for managed-code environments. Adobe Premiere’s forthcoming Android app already employs WebGPU with Media3 Transformer for template-driven Shorts creation. The Android Performance Analyzer unifies system-wide insights, loading and rendering traces up to 26× faster than the prior GPU Inspector while preserving broad compatibility. Partners report concrete wins: Netmarble cut GPU usage by up to 90 percent in The Seven Deadly Sins: Origins; The Forge reduced per-frame CPU cost of key Vulkan APIs by up to 50 percent.

From Operating System to Intelligent System: Agentic AI and Proactive Experiences

Android is evolving beyond a conventional operating system into an intelligence system that anticipates user needs. Next-generation autofill improves form-completion rates using existing hints. On Pixel devices, AI detects scam patterns in messaging-app notifications and warns users before they respond. Magic Compose, introduced on Pixel 10, surfaces contextual information and actions inside apps and is expanding to additional titles such as Snapchat, creating new discovery surfaces.

The agentic era enables assistants such as Gemini to orchestrate multi-app workflows. Gemini can analyze screens, navigate tasks, and pause for user confirmation at sensitive points (for example, transactions). Background execution occurs on a virtual display, allowing the user to perform other work concurrently. App Functions—a platform API and Jetpack library—lets applications expose capabilities as on-device MCP-style tools. Apps that already separate data and presentation layers can integrate relatively straightforwardly. A demonstration with the Now in Android sample automatically generated functions for listing topics and articles, following topics, and bookmarking content; an accompanying test agent and live Gemini instance executed multi-app flows (retrieving an article and sending it via a separate chat application). Early-access programs invite production deployment.

On-device models such as Gemini Nano, available on more than 140 million devices and based on open Gemma models, keep data local, function offline, and incur no per-transaction cost. Gemma 4, expected on flagship devices later in the year under the Apache license, improves multilingual support, battery efficiency, and advanced capabilities. The AI Core developer preview and ML Kit prompt API already power production features: Webex translates short chat messages; Photoshop explores automatic layer renaming. Cloud-side Gemini via Firebase AI Logic supports more demanding workloads, illustrated by ABC Mouse’s closed-loop personalized support for children. The forthcoming ATUI protocol and Jetpack Compose renderer will allow cloud agents to display rich client UI.

Privacy and security foundations underpin these experiences. Android 17 enforces read-only native libraries on dynamic load, delays most apps from reading OTP SMS for three hours, and extends Credential Manager with verified email/phone verification and automatic passkey creation for existing password users. Health Connect gains cross-app data-sync requests; Companion Device Manager unifies association and nearby-permission dialogs with medical-device and fitness-tracker profiles. Access-local-network permission is now required for LAN discovery. Privacy-preserving pickers mitigate broad-permission requests: Output Switcher for Cast devices, an eyedropper API for single-pixel color sampling without screen-capture permission, refined Contacts picker for selected fields, and an updated Photo Picker supporting portrait grid view.

Media and camera capabilities expand correspondingly. On-device image and video enhancement libraries (used by Instagram) apply upscaling, deblur, denoise, and tone mapping entirely locally. Audio APIs are restricted to foreground apps and appropriate foreground services, reducing unexpected background capture; MediaSessionService mitigates impact for legitimate background playback. Support arrives for new professional image and video formats, improved HE-AAC streaming, vendor camera extensions, and next-generation Eclipsa HDR video with ExoPlayer integration. Picture-in-picture receives a dedicated Jetpack library usable with CameraX for scripted recording workflows. Live Update notifications gain a metric-style template and semantic color API; call history is unified across telephony and messaging apps; system emoji become richer while remaining zero-effort for developers who already use system emoji.

Adaptive Multi-Device Ecosystem

More than 580 million large-screen devices are in use; users of these form factors engage more deeply and expect full-screen utilization regardless of orientation. Android 17 therefore ignores orientation and aspect-ratio opt-outs on large screens. Navigation Free and Compose adaptive libraries handle common scenarios; Navigation Free 1.1 adds scene decorators for global navigation chrome, and 1.2 alphas introduce deep-link support. Experimental Compose 1.11 APIs—MediaQuery for capability interrogation, Flexbox for responsive growth/shrink/wrap, and Grid for structured rearrangement—further simplify adaptive construction.

Wear OS 7 delivers up to 10 percent better battery life. Phone media sessions automatically surface system playback controls on the watch; live-update notifications can be bridged by manufacturers; local live updates serve phone-free scenarios. Wear widgets evolve under Jetpack Glance (tiles become widgets); Remote Compose enables expressive animations. A Wear workout tracker arrives in Google Play services; Compose for Wear OS 1.6 adds Navigation 3 and ambient-mode management. The Wear OS 7 Canary emulator is available in Android Studio.

XR headsets and glasses inherit adaptive work. Immersive worlds can be generated procedurally to keep APK size modest; geospatial navigation aids wired glasses; Godot and Unreal Engine support expands with vendor extensions (scene understanding, light estimation, face tracking). Jetpack Compose Glimmer gains interactive lists and stacks plus an agent skill for rapid adoption. An XR Developer Catalyst program provides hardware, resources, and funding.

Car development benefits from increased parity between Android Auto and Google-built-in systems. Car App Library templates now cover media on both platforms; Maps with Content template and the Google Maps SDK are shared. Version 1.9 introduces ten flexible components (enhanced chips, expandable headers, progress bars) available via early access. Parked-to-driving transitions and equivalent video experiences (HD while parked) are scheduled later in the year.

Desktop experiences gain relevance with Google Book, the next Chrome OS iteration built on Android stack components. Adaptive apps that already support keyboard shortcuts, drag-and-drop, and custom pointers (examples include Brand Lab, PowerDirector, Notability) deliver improved desktop-class behavior.

Taken together, these initiatives reposition Android development around a productive Compose-centric stack, rigorous performance and memory discipline, agentic intelligence that keeps apps at the center of user workflows, and seamless adaptation across an expanding device continuum. Developers who adopt the recommended practices and early tooling position their applications to deliver the high-quality, trustworthy experiences expected by the platform’s diverse user base.

Links:

PostHeaderIcon [DotJs2025] Using AI with JavaScript: Good Idea?

Amid the AI deluge reshaping codecraft, a tantalizing prospect emerges: harnessing neural nets natively in JavaScript, sidestepping Python’s quagmires or API tolls. Wes Bos, a prolific Canadian educator whose Syntax.fm podcast and courses have schooled half a million in JS mastery, probed this frontier at dotJS 2025. Renowned for demystifying ES6 and React, Wes extolled browser-bound inference via Transformers.js, weighing its virtues—privacy’s fortress, latency’s lightning—against hardware’s hurdles, affirming JS’s prowess for sundry smart apps.

Wes’s overture skewered the status quo: cloud fetches or Python purgatory, both anathema to JS purists. His heresy: embed LLMs client-side, ONNX Runtime fueling Hugging Face’s arsenal—sentiment sifters, translation tomes, even Stable Diffusion’s slimmer kin. Transformers.js’s pipeline paradigm gleams: import, instantiate (pipeline('sentiment-analysis')), infer (result = await pipe(input)). Wes demoed a local scribe: prompt yields prose, all sans servers, WebGPU accelerating where GPUs oblige. Onyx.js, his bespoke wrapper, streamlines: model loads, GPU probes, inferences ignite—be it code completion or image captioning.

Trade-offs tempered triumph. Footprints fluctuate: 2MB wisps to 2GB behemoths, browser quotas (Safari’s 2GB cap) constraining colossi. Compute cedes to client: beefy rigs revel, mobiles murmur—Wes likened Roblox’s drain to LLM’s voracity. Yet, upsides dazzle: zero egress fees, data’s domicile (GDPR’s grace), offline oases. 2025’s tide—Chrome’s stable WebNN, Firefox’s flag—heralds ubiquity, Wes forecasting six-month Safari stability. His verdict: JS, with its ubiquity and ecosystem, carves niches where immediacy reigns—chatbots, AR filters—not every oracle, but myriad muses.

Wes’s zeal stemmed personal: from receipt printers to microcontroller React, JS’s whimsy fuels folly. Transformers.js empowers prototypes unbound—anime avatars, code clairvoyants—inviting creators to conjure without concessions.

Client-Side Sorcery Unveiled

Wes unpacked pipelines: sentiment sorters, summarizers—Hugging Face’s trove, ONNX-optimized. Onyx’s facade: await onnx.loadModel('gpt2'), GPU fallback, inferences instantaneous. WebGPU’s dawn (Chrome 2025 stable) unlocks acceleration, privacy paramount—no telemetry trails.

Balancing Bytes and Burdens

Models’ mass mandates moderation: slim variants suffice for mobile, diffusion downsized. Battery’s bite, CPU’s churn—Wes warned of Roblox parallels—yet offline allure and cost calculus compel. JS’s sinew: ecosystem’s expanse, browser’s bastion, birthing bespoke brains.

Links:

PostHeaderIcon [GoogleIO2024] Developer Keynote: Innovations in AI and Development Tools at Google I/O 2024

The Developer Keynote at Google I/O 2024 showcased a transformative vision for software creation, emphasizing how generative artificial intelligence is reshaping the landscape for creators worldwide. Delivered by a team of Google experts, the session highlighted accessible AI models, enhanced productivity across platforms, and new tools designed to simplify complex workflows. This presentation underscored Google’s commitment to empowering millions of developers through an ecosystem that spans billions of devices, fostering innovation without the burden of underlying infrastructure challenges.

Advancing AI Accessibility and Model Integration

A core theme of the keynote revolved around making advanced AI capabilities available to every programmer. The speakers introduced Gemini 1.5 Flash, a lightweight yet powerful model optimized for speed and cost-effectiveness, now accessible globally via the Gemini API in Google AI Studio. This tool balances quality, efficiency, and affordability, enabling developers to experiment with multimodal applications that incorporate audio, video, and extensive context windows. For instance, Jacqueline demonstrated a personal workflow where voice memos and prior blog posts were synthesized into a draft article, illustrating how large context windows—up to two million tokens—unlock novel interactions while reducing computational expenses through features like context caching.

This approach extends beyond simple API calls, as the team emphasized techniques such as model tuning and system instructions to personalize outputs. Real-world examples included Loc.AI’s use of Gemini for renaming elements in frontend designs from Figma, enhancing code readability by interpreting nondescript labels. Similarly, Invision leverages the model’s speed for real-time environmental descriptions aiding low-vision users, while Zapier automates podcast editing by removing filler words from audio uploads. These cases highlight how Gemini empowers practical transformations, from efficiency gains to user delight, encouraging participation in the Gemini API developer competition for innovative applications.

Enhancing Mobile Development with Android and Gemini

Shifting focus to mobile ecosystems, the keynote delved into Android’s evolution as an AI-centric operating system. With over three billion devices, Android now integrates Gemini to enable on-device experiences that prioritize privacy and low latency. Gemini Nano, the most efficient model for edge computing, powers features like smart replies in messaging without data leaving the device, available on select hardware like the Pixel 8 Pro and Samsung Galaxy S24 series, with broader rollout planned.

Early adopters such as Patreon and Grammarly showcased its potential: Patreon for summarizing community chats, and Grammarly for intelligent suggestions. Maru elaborated on Kotlin Multiplatform support in Jetpack libraries, allowing shared business logic across Android, iOS, and web, as seen in Google Docs migrations. Compose advancements, including performance boosts and adaptive layouts, were highlighted, with examples from SoundCloud demonstrating faster UI development and cross-form-factor compatibility. Testing improvements, like Android Device Streaming via Firebase and resizable emulators, ensure robust validation for diverse hardware.

Jamal illustrated Gemini’s role in Android Studio, evolving from Studio Bot to provide code optimizations, translations, and multimodal inputs for rapid prototyping. A demo converted a wireframe image into functional Jetpack Compose code, underscoring how AI accelerates from ideation to implementation.

Revolutionizing Web and Cross-Platform Experiences

The web’s potential was amplified through AI integrations, marking its 35th anniversary with tools like WebGPU and WebAssembly for on-device inference. John discussed how these enable efficient model execution across devices, with examples like Bilibili’s 30% session duration increase via MediaPipe’s image recognition. Chrome’s enhancements, including AI-powered dev tools for error explanations and code suggestions, streamline debugging, as shown in a Boba tea app troubleshooting CORS issues.

Aaron introduced Project IDX, now in public beta, as an integrated workspace for full-stack, multiplatform development, incorporating Google Maps, DevTools, and soon Checks for privacy compliance. Flutter’s updates, including WebAssembly support for up to 2x performance gains, were exemplified by Bricket’s cross-platform expansion. Firebase’s evolution, with Data Connect for SQL integration, App Hosting for scalable web apps, and Genkit for seamless AI workflows, further simplifies backend connections.

Customizing AI Models and Future Prospects

Shabani and Lawrence explored open models like Gemma, with new variants such as PaliGemma for vision-language tasks and the upcoming Gemma 2 for enhanced performance on optimized hardware. A demo in Colab illustrated fine-tuning Gemma for personalized book recommendations, using synthetic data from Gemini and on-device inference via MediaPipe. Project Gameface’s Android expansion demonstrated accessibility advancements, while an early data science agent concept showcased multi-step reasoning with long context.

The keynote concluded with resources like accelerators and the Google Developer Program, emphasizing community-driven innovation. Eugene AI’s emissions reduction via DeepMind research exemplified real-world impact, reinforcing Google’s ecosystem for reaching global audiences.

Links: