r/androiddev • • 27d ago

News ICYMI: Every Android Dev Summit 2026 VOD is now live, and it’s now easier than ever to get caught up!

Post image
51 Upvotes

Hi r/AndroidDev,

ICYMI, Android Dev Summit returned last week after a four-year hiatus (Oct. 28–29), featuring over 50 sessions covering agentic development workflows (Android CLI, Agent Client Protocol support in Android Studio [i.e. Bring Your Own Agent], and declarative builds with Lightbuild), on-device and hybrid AI (Gemini Nano 4, Gemma 4, and Android MCP), our shift to a Compose-first UI architecture, and building across form factors like Googlebook and Android XR. If you couldn't make it out in person, the recorded session VODs are now live on YouTube so you can catch up on the talks relevant to your stack at your own pace—I've rounded up all of the links and descriptions by track below so everything is in one place.

Also worth noting if you'd rather skim or feed sessions straight into your coding workflow: the Android Dev Summit site is set up for agents this year:

  • 📄 Download any talk as Markdown: Includes a summary, resource links, a speaker-labeled transcript, and code blocks in one file—drop a few into your agent and ask what changed for your app.
  • 🗂️ Point an agent at one JSON feed: Structured metadata covering every session.
  • 🧩 Grab the Agent Skills: Install the modular instruction sets each talk references.

If you're short on time and want to quickly catch up on the biggest announcements from ADS, start with the Android Dev Summit 2026 Keynote and check out these three recap posts on the Android Developers Blog:

Android intelligent apps

Integrate your app with the Android intelligence system

Android is evolving into an intelligence system where agents like Gemini orchestrate tasks across apps. To unlock new user experiences and participate in these agentic workflows, your app must expose its core capabilities.

This session is a practical guide to integrating your app with Android's intelligence layer. We'll survey key integration paths - including on-device Android MCP, server-side MCP, and Task Automation - and provide a decision framework for choosing the right path for your use case. We'll also explore proactive experiences with Personal Context.

You will learn how to:
* Select the optimal integration path for your app's needs.
* Implement both reactive and proactive intelligence features.
* Balance performance and security in agentic integrations.

Inside Gemini Nano and Gemma 4 powering on-device intelligence

Gemma 4 brings capable, multimodal AI directly to Android devices. In this session, we'll trace how Gemma evolved into a model family built for efficiency and explore what the edge-optimized E2B and E4B models can do on-device, from vision and audio understanding to agentic function calling. We'll cover the architecture behind that efficiency, including Per-Layer Embeddings (PLE), and show how Gemma and Gemini Nano work together through AICore. You'll learn how Quantization-Aware Training (QAT) preserves model capability within 1.1–3.5 GB RAM footprints, while Multi-Token Prediction (MTP) accelerates decoding speeds 1.5x–3x for responsive, real-time experiences.

On-device intelligence: Optimized performance and quality using Android ML Kit APIs

In this session, we'll explore different GenAI use cases using ML Kit APIs to understand when on-device GenAI is ideal for an app and also understand how to evaluate existing GenAI use cases to see if on-device models can satisfy their quality bar.

Build optimized Android Apps with Firebase AI Logic and Gemini Nano 4

Building production-ready generative AI into Android apps requires more than connecting to an LLM—it demands enterprise-grade security and cost controls. In this session, discover how Firebase AI Logic empowers developers to deploy secure, budget-conscious AI experiences at scale.

We will cover from security foundations and Firebase App Check, cost management, dynamic model routing to leveraging the multimodal capabilities.

Extend your app to Gemini and Search with the Connected Apps Platform

Explore how to connect your applications seamlessly to Gemini, Search and the Android intelligence system.

The new Connected Apps Platform lets you integrate your app's services directly into Gemini, AI Mode in Search, and the Android intelligence system. This session provides a practical guide to getting started. Using code examples and learning from real-life case studies, we’ll walk through the development lifecycle: building, testing, and publishing your first connected app to reach users within their AI-powered workflows.

By the end of this session, you'll be able to:
* Integrate your service with the Connected Apps Platform.
* Test your integration across different AI surfaces.
* Publish your app’s features into users' AI workflows.

Mastering on-device intelligence with ML Kit and LiteRT in Google Play services

Stop choosing between plug-and-play AI convenience and custom model flexibility—you can deploy both in a single, ultra-lean app without adding megabytes of binary bloat.

In this session, we’ll demonstrate how to build this exact dual-stack architecture in a single Android app. You’ll see how to leverage ML Kit for ready-to-use classical ML tasks (like doc scan) alongside LiteRT standalone in Play services for your custom computer vision or audio workloads. We’ll dive deep into how both implementation paths unite under the hood to utilize the modern LiteRT runtime, giving your app seamless, hardware-accelerated performance on CPU and GPUs with a virtually zero-byte download footprint.

Key takeaways for developers:
* Uncompromised performance: Both turnkey and custom models are hardware-accelerated automatically using the unified CompiledModel API.
* Micro-APKs: Dramatically reduce your app’s download size by offloading both the ML Kit and LiteRT runtimes to Play services.
* Hybrid integration: Master running multiple ML workflows side-by-side in production without resource conflicts.

Unlock agentic capabilities in your app with ML Kit GenAI

Take your Android AI features to the next level by building autonomous on-device agents. In this session, we dive into ML Kit’s new agentic APIs, built directly on top of the direct model access APIs you already know.

Using the open-source Jetpacker app, you’ll learn how to chain multi-step actions across local data, manage stateful multi-turn sessions with isolated contexts, and wire up Android MCP to power both in-app assistants and Android system-level surfaces with a single codebase.

Agentic coding workflows with small models

While large frontier models dominate the headlines, small language models (SLMs) like Gemma 4 offer low-latency, cost-effective, and fully offline intelligence to augment daily developer workflows.

This talk explores practical patterns for integrating small models into Android development, from smart task routing to cost optimization, using Gemma 4 as our primary hands-on case study to demonstrate real-world use cases and how to configure developer tools and agentic workflows.

Let agents generate UI in your Android apps with A2UI

A2UI is transitioning from web-centric components to native Android. The new Jetpack Compose renderer for A2UI v0.9 enables developers to render dynamic, LLM-generated UI natively. Instead of webviews, it leverages a Coroutine-driven actor framework, sealed-class lifecycles, and native Material 3 integration.

This session walks through the new architecture, explaining how server-driven component trees translate into reactive Compose nodes, and how built-in layout transitions handle structural updates smoothly without blocking the UI.

Building a Formula E co-driver on Android with ML Kit and Gemini Nano

A racing car is a demanding environment of high speed, heat, and telemetry constraints. How can an on-device agent help process real-time vehicle data for sports and engineering applications?

This technical session explores an experimental hybrid architecture combining edge hardware and cloud agents. We'll walk through a research proof-of-concept using a Raspberry Pi to stream CAN bus telemetry, a Pixel phone running an on-device conversational agent powered by ML Kit and Gemini Nano, and an agent-to-agent (A2A) Cloud connection for post-race workflows.

Android tools & performance

Agentic engineering with Claude Code and Android CLI

Stop copy-pasting into AI chat windows and start delegating to your agent. This practical, example-driven session shows you how to level up your agentic engineering using Claude Code and the Android CLI. We will walk through a complete workflow to automate complex development tasks and ship features faster.

You will learn to:
* Optimize the token efficiency of your harness using Android CLI, Skills, Hooks and MCP.
* Offload and parallelize long-running tasks to subagents.
* Set up continuous verification loops that stop early termination and run until tests pass.

The latest in Android dev tools from Android Dev Summit 2026

Discover what’s next for Android development across Android Studio and the terminal with Android CLI. In this session, we unveil the latest in Android Studio Canary and Stable—from AI-assisted code migrations to Compose and Agent Client Protocol (ACP) support, to Lightbuild’s declarative architecture. We’ll also dive into the latest updates to the Android CLI toolchain. Learn how you can use it to automate your inner-loop workflows with improved access to devices, diagnostics tools for local and production issues, profiling workflows that let your agents test and validate optimizations and much more.

Declarative, agent-ready Android builds with Lightbuild

As Android apps grow and AI coding assistants become essential, using executable code to configure your build can create bottlenecks with slow sync times, fragile logic, and added complexity.

Enter Lightbuild: Google's declarative, config-driven interface to the build engine, designed for modern Android development.

In this session, we'll explore Lightbuild's new approach to managing builds and how to use it to build a demo app. Learn how decoupling build config from execution delivers faster project opens with lightning-fast sync in Android Studio, while offering a predictable schema for safer, more reliable AI editing. We’ll also cover Lightbuild's agent-friendly CLI tools for creating reproducible builds across local machines, teams, and CI/CD pipelines.

Decoding Play Policy AMA

An open and honest panel about Play policies to keep your app compliant and quickly published.

App security in the agentic era

This presentation explores the strategic shift from viewing AI as a generic coding assistant to leveraging it as a context-aware, automated security peer reviewer integrated directly into the Android development lifecycle. We discuss how specialized AI agents, connected to the Android toolchain via skills, can help improve app security. By bridging the gap between raw LLM capabilities and deep project context, this approach empowers development teams to maintain high-velocity feature delivery without compromising rigorous security and policy standards.

Trace me if you can: Automated instrumentation and field profiling

Optimizing Android apps requires deep visibility into concurrent workflows and coroutine suspensions. While local profiling offers a useful snapshot, scaling these insights to production without overhead remains a challenge.

This session delivers an architectural blueprint for a continuous performance feedback loop:
* androidx.tracing 2.0: Swap backends dynamically and propagate coroutine contexts (Perfetto flows) across threads.
* Smart Instrumentation: Use local ART tracing to find hotspots, then automate the injection of low-overhead trace points.
* Macrobenchmarking: Track regressions and verify performance gains on physical devices in CI.
* Field Tracing: Go beyond local and CI tracing, with ProfilingManager.

Type safe keep rules and DEX optimization

Android apps often ship under-optimized due to overly conservative keep rules often from third-party libraries, leading to bloated APKs, slower cold starts, and degraded runtime performance.

With Google Play’s new performance thresholds for DEX optimization, app visibility now directly depends on staying ahead of the optimization curve.

This talk introduces a modern R8 workflow to tackle rule bloat. You will learn to:
* Use the R8 config analyzer and skill to identify legacy rule overhead.
* Transition from broad wildcard keep rules to precise, type-safe, generated annotations.
* Prevent optimization regressions with new Android CLI tools.

Agentic coding: A roundtable with industry leaders

As AI tools rapidly reshape modern software engineering, this panel will explore how developers are leveraging AI-assisted coding, automated agents and specialized developer tooling in their daily workflows. We aim to highlight practical applications, discuss measurable productivity improvements and candidly address the challenges engineering teams face when integrating AI at scale.

Memory troubleshooting with Firebase Crashlytics

Keep your app's memory footprint lean-and-mean and non-segfaulty with Firebase Crashlytics. This session explores our comprehensive suite of memory troubleshooting tools available in the Firebase console and in Android Studio. We’ll start by covering how to leverage ANR insights and GWP-ASan reports to diagnose elusive memory bugs and then dive into our latest tooling for Out-Of-Memory (OOM) and Memory Limiter Kill (MLK) events, designed specifically to help you navigate and adapt to the new memory limits introduced in Android 17.

Navigating multi-device quality & publishing beyond mobile on Google Play

As the Android ecosystem expands across wrists, living rooms, vehicles, and XR, the opportunity to reach users on new screens is growing. However, distributing across Wear OS, Android TV, Android Auto, Android Automotive OS, or Android XR introduces distinct considerations for testing, store listings, and app reviews.

This session explores how to effectively utilize Google Play Console for non-mobile form factors to help streamline a predictable multi-device launch. We will cover key distribution decisions, including how to structure track strategies and package names, configure targeted testing tracks, and tailor store listings. You'll get a practical walkthrough of form-factor App Quality guidelines to help avoid common review pitfalls and publish on Google Play with greater confidence.

Android developer verification: Publishing paths for all developers

Android Developer Verification is crucial for a safer ecosystem. This session breaks down the compliance pathways for all developers, from large studios to hobbyists. We will outline the key requirements for publishing on Google Play and third-party app stores. The talk will feature a live demo of the new Limited Distribution accounts, showing how students and hobbyists can easily and safely share apps.

By the end of this session, you will be able to:
* Understand the 3 main developer verification paths.
* See the new Limited Distribution account flow live.
* Identify your specific next steps for compliance.

Outperform yourself in Compose

Jetpack Compose makes it easy to design high-quality user interfaces, but it can be difficult to track down issues that affect UI performance. These kinds of issues can lead to problems that your users notice, like startup latency, and dropped frames that appear as scroll jank or choppy animations.

In this talk, we’ll introduce tools to uncover what’s impacting your UI’s performance, focusing on Perfetto and (re-)composition tracing. We’ll then explore specific anti-patterns you may be using that are secretly costing you, how you can find them in your code, and what positive patterns you can replace them with. By the end of this talk, you’ll understand how to think in Compose with a performance mindset, and how to profile, analyze, and verify performance optimizations in your app.

Actionable strategies for reducing your app's Bitmap memory footprint

Managing Bitmap memory is critical for mitigating Out-Of-Memory (OOM) risks in visually rich Android apps. While developers know to reduce image sizes, achieving long-term app stability comes from mastering two other key pillars: Reuse and Recycle. This session delivers a practical playbook for optimizing memory performance using modern tools, open-source libraries like Glide and Coil, and system-level APIs.

In this session, you will learn how to diagnose real-world memory regressions using Android Vitals, implement advanced caching (Reuse) patterns with Glide and Coil, and proactively release memory (Recycle) using the onTrimMemory callback.

Insights into agent code generation from Android Bench

AI models can generate entire features in minutes, but is the code correct? We built Android Bench, our AI evaluation benchmark, to answer this question after analyzing thousands of generated code changes.

This talk shares insights from our journey, including all the ways we saw models cheats, how prompt specificity leads to higher code quality and how different agents approach the same task.

Android apps foundation

Scale your app for every screen with Compose

The Android ecosystem is vast, with users shifting seamlessly across phones, tablets, foldables, and desktop environments. Now that we are Compose First, this session explores how to architect your app for resizable windows and diverse aspect ratios—where traditional layout assumptions break down, leading to stretched UIs and lost state.

Explore how the latest capabilities in Jetpack Compose, Navigation 3, and WindowManager can help you build dynamic layouts that naturally scale from compact screens to dual-pane displays. Walk away with strategies to accelerate your development workflow using Gemini and our skills, like the adaptive skill, to automatically refactor legacy codebases for larger screens.

Migrating two decades of the Google Play app to Jetpack Compose

This year, Android officially became Compose-first for building all UI, placing legacy Views into maintenance mode. For Google Play, that journey began back in 2020. Across an engineering footprint spanning nearly two decades and billions of users, migrating to Jetpack Compose was achieved through proven best practices, close collaboration with the core Compose team and continuous tooling evolution.

Discover how modernizing Google Play with Compose delivered measurable improvements in velocity and long-term stability. The session walks through connecting agentic Figma design workflows with Compose implementation, automating quality to prevent unnecessary recompositions and crafting expressive interfaces with dynamic color, rich typography and layered shapes. You will leave with tested strategies to triage bugs faster and scale your own Compose migration with confidence.

Graphics features in Jetpack Compose that can elevate your app

Ready to take your Android UI from "it works" to "it’s a work of art"?

Join us for a tour of the latest graphics capabilities in Jetpack Compose. We’ll show you how to build new visual effects, from delightful mesh gradients to progressive blurs, and using the powerful new graphics features in Android. We will also show you how to improve the performance of your graphics features, without sacrificing battery life or frame rates.

The car is your canvas: Unlocking Android development for the road

As in-car displays expand across Android Auto and Android Automotive OS vehicles, developers face a unique dual challenge: delivering rich, adaptive experiences while parked, and driver-safe, template-driven experiences while driving. In this comprehensive 30-minute technical session, we explore the end-to-end architecture and development approaches to adapting Android apps to cars.

From the fundamentals of designing apps for use in cars, to the newest approaches for building media experiences that shift from audio to video as the car shifts from drive to park, you'll leave with everything you need to know to get your app on the road.

Elevating camera experiences across devices with CameraX and on-device intelligence

Users expect third-party apps to capture photos and videos with the same high fidelity as their device's native camera, regardless of lighting conditions or hardware tier. Delivering this consistency across the expanding Android ecosystem comes with key architectural considerations. This session demonstrates how to construct robust, professional capture pipelines that maximize device capabilities while remaining reliable across all form factors.

We will explore the latest advancements in CameraX, showing you how to integrate cutting-edge capabilities like Motion Photos and on-device AI enhancements through Google Play services, alongside spatial experiences using the Jetpack XR SDK. We will also look at our CameraX skill, which allows the coding agent of your choice to automatically implement the concepts in this talk, and more!

Optimize media playback and maximize reach with Jetpack Media3 APIs

Media consumption accounts for a large portion of user time spent on mobile devices, which requires the playback experience to be flawless, highly efficient and mindful of battery life. Furthermore, users expect these experiences to seamlessly transition across their devices, from phones to living room TVs and beyond.

Explore how architectural updates in Media3 and ExoPlayer power seamless playback across form factors. The discussion centers on crafting responsive interfaces with the Media3 Compose UI toolkit, eliminating buffering in feeds using the new PreloadManager and extending your app to living room screens and Android XR with CastPlayer and spatial audio.

Building reliable text editing experiences in Compose

The journey to reliable text editing in Compose culminated in the complete rewrite of BasicTextField. This shift to a buffer-driven architecture eliminated IME race conditions once and for all. This session unpacks why legacy input syncing had to go and how TextFieldState keeps keyboard updates in sync. From there, take a deep dive into formatted editing to explore the mechanics of TrackedRange, the performance costs of edit blocks, and the real-world catches behind style boundaries, before taking an early peek at Markdown rendering.

Powering interactive surfaces with Remote Compose

Remote Compose introduces a new way to project expressive and interactive UI onto remote surfaces like widgets. By serializing layouts into compact binary payloads, RemoteCompose decouples UI from host execution to deliver significant advantages.

Key benefits include edge interactivity that enables high-performance rendering through local execution on the remote device, fluid scaling that allows UIs to reflow across diverse form factors via remote-side component evaluations, and a unified developer workflow that removes the need for platform-specific remote UI frameworks through familiar Jetpack Compose APIs.

This session unpacks these benefits and provides live production examples, including modern Wear OS Widgets and the glanceable Wear Workout Tracker experience in Runkeeper.

Inside the first wave on Googlebook with Notability and Logitech

The launch of Googlebook opens up a new frontier for high-fidelity, desktop-grade experiences. In this session, we go behind the scenes with two pioneering partners who built for this platform from the ground up.

Notability will share their journey creating a desktop-class Android app using Jetpack Compose. Learn about their journey moving from other app platforms with desktop top-of-mind. Second, Logitech will dive into the hardware side, discussing how they are building and customizing peripherals to integrate seamlessly with Googlebook. Join the session to get practical, real-world insights on optimizing inputs, leveraging large-screen APIs, and delivering a premium, cohesive user experience across hardware and software.

Scaling input interactions beyond the touchscreen with Jetpack Compose

As new form factors move beyond the touchscreen, Compose's input system has evolved to meet the challenge. Its layered architecture provides the foundation for supporting everything from advanced trackpad gestures to novel hardware inputs seamlessly.

Through clear architectural breakdowns and hands-on code examples, follow the lifecycle of an input event all the way from the OS platform layer up to Compose gesture detectors and UI components. You will discover how to trace events across the entire stack, apply key architectural patterns for emerging input types, and confidently debug complex gesture interactions in your own apps.

Take Compose state beyond the UI with Jetpack AppState

Compose’s snapshot runtime, automatic dependency tracking, and atomic updates don’t have to stop at the UI layer. Jetpack AppState lets you move Compose state upstream—streamlining what reaches your screens by hoisting and deriving state with the snapshot system before it ever hits the UI.

In this session, you’ll learn about AppState’s two foundational libraries. We’ll dive into StateStore for hoisting state, and Transform for using composition to derive state with plain Kotlin control flow—eliminating complex Flow combine chains and keeping your UI effortlessly in sync.

Delivering Seamless Sign In and Digital Credentials on Android

As the industry moves away from passwords and physical wallets, delivering a modern user journey demands both seamless authentication and trusted identity verification. While passkeys establish secure one tap logins, switching devices remains one of the largest drop off points in user engagement. Learn how to reduce migration friction using the Restore Credentials API to meet the new Google Play Zero Tap Sign In standard.

This session explores how a single integration with Android Credential Manager unifies passkeys, silent device restoration, and Digital Credentials, allowing you to verify identity attributes directly from the device and build an effortless, secure onboarding flow.

Evolving Tiles to Wear Widgets using Jetpack Glance and Remote Compose

In this session, we will take a technical deep dive into the evolution from full-screen Tiles to dynamic, partial-height Wear Widgets.

We will explore the technical benefits of the unified Jetpack Glance API and the new Remote Compose engine, detailing how they seamlessly align with Modern Android Development.

Finally, we will share the latest UX guidance and walk through practical migration strategies to help you build the next generation of glanceable UI.

Building type-safe deep links with Jetpack Navigation3

Managing deep links across modular Android apps can easily lead to broken routes and runtime surprises. This session unpacks Jetpack Navigation 3’s new type-safe deep linking architecture for Compose to help you build a robust and scalable routing system. We'll explore how to implement out-of-the-box deep link matching APIs, write custom serializers for complex type-safe arguments, and construct dynamic hierarchical back stacks that keep user navigation predictable.

Lessons from WhatsApp's Wear OS journey

Hear directly from WhatsApp engineers on how they upgraded their Wear OS app at scale. This session covers the architectural and UX decisions behind integrating Material 3 and adopting Wear Widgets.

Gain direct insight into the lessons, patterns and tools the team used to update their app and deliver a cohesive user experience.

Enabling seamless cross-device interactions

As users move between phones, wearables, and audio peripherals, delivering fluid cross-device experiences has become essential for engagement. However, relying on standard networking approaches often leads to battery drain, latency spikes, and fragmented user sessions.

This deep dive introduces specialized Android APIs built for multi-device communication, offering memory- and power-efficient patterns to keep transitions between devices instant, reliable, and intuitive.

Android XR

Elevate immersive experiences with 3D Engines in Jetpack Compose for XR

Learn how to integrate 3D game engines (Godot & Unity) with Jetpack Compose into a single codebase for mobile and Android XR. We'll explore embedding 3D scenes into spatial containers, setting up Kotlin-to-engine communication—featuring an exclusive look into how the NBA built their live basketball experience on Android XR.

Build world anchored experiences for wired XR glasses

Go beyond screen-space and anchor your apps in the real world with Android XR. This session teaches you how to build geospatially aware Android XR experiences using Jetpack Compose Glimmer and ARCore's Geospatial API. We will start by covering how to get a device's geospatial pose with ARCore. Then, you'll see how Glimmer’s minimal UI components can be anchored to real-world locations via the Visual Positioning System (VPS). We'll combine these to build a simple, location-aware spatial experience.

Architecting Spatial Content on Android XR with Unity

Discover how to anchor and persist 3D experiences in the real world using Unity and Android XR. This session covers the Spatial Entities framework, Cloud Anchors, and Geospatial APIs, demonstrating how to build context-aware apps that remember physical placements and sync multi-user spatial data across sessions.

We will examine the architecture behind spatial entities, understand how to anchor digital assets to physical objects, surfaces, and geographic locations. You will walk away with practical Unity workflows for mapping spaces, persisting content across sessions, and creating shared, location-aware AR/XR experiences.

Balancing ultra-low latency and cloud economics in virtual voice agents

Bringing conversational AI into immersive experiences opens up huge possibilities, yet there’s a constant friction between low response latency and sustainable cloud costs. In this session, Devin Reimer (Founder & CEO of AstroBeam) breaks down how the team behind Stellar Cafe achieved industry-leading voice interaction response times (1.15s–1.4s) while keeping the business model commercially sustainable.

Explore the hybrid architecture behind these low latency pipelines, focusing on intelligent orchestration between on-device models and optimized cloud inference to cut expensive API calls without degrading dialogue. You’ll walk away with a practical blueprint covering Time-to-First-Token optimization across Speech-to-Text and streaming Text-to-Speech pipelines, parallel safety guardrails that bypass latency overhead, and unit economics per active user session.

XR is for everyone: Designing accessible spatial experiences

When we say XR is for everyone, that principle has to guide how we build from day one. In this introductory guide for developers new to XR, Jazmin Cano shares the foundational accessibility principles honed at Owlchemy Labs. Engine-agnostic and universally applicable to both games and apps, this session explores how early consideration of motor, visual, auditory, and cognitive needs leads to better experiences for all users. Discover how to build an inclusive development culture, conduct meaningful testing, and design spatial interactions that remove barriers without sacrificing quality.

Building audio-first experiences for intelligent eyewear with Gemini Nano 4

Discover how to build robust, hands-free audio experiences powered by on-device AI. We’ll cover everything you need: setting up your glasses activity, capturing mic and camera feeds, and using voice along with other audio cues as your ultimate UI. Through an exciting real-world showcase of the open-source XR Language Teacher built in the Google AI Edge Gallery app, learn to orchestrate Gemini Nano 4 (built on Gemma 4 and optimized for Android devices), and ML Kit, and leverage the LiteRT runtime to build fast XR experiences that hear, see, and speak naturally.

Moving beyond 2D with custom 3D geometry in the Jetpack XR SDK

Transitioning your Android applications from traditional 2D screens into spatial environments requires a new approach to constructing shapes.

In this session, we will explore the Custom Mesh API in the Jetpack XR SDK, which allows you to programmatically generate procedural 3D geometry directly at runtime. We will walk through the core workflow, from defining vertex layouts to rendering dynamic objects seamlessly within the user's physical space.

By the end of this talk, you will have the practical skills to build interactive, custom 3D geometry completely from code.

Which sessions or announcements stood out to you this year? Let us know what you're testing out in the comments!


r/androiddev • • Oct 05 '26

Megathread: Play Store review times

23 Upvotes

Comment here to discuss the recent trend of long Play Store review times for app submissions and updates.

Do not make a new post about this subject, as it will be removed.

This is an unofficial developer community, so we are not on the Play team and cannot help your app/update pass review. No, we don't have tips to speed things up.

Yes, Play Store developer support is present on this sub and may answer questions or assist you on a case-by-case basis. The mod team is not affiliated with and has no influence over that account. We make no guarantees as to their effectiveness, but we are grateful they exist and that they continue to communicate with users here.


r/androiddev • • 9h ago

How do you catch adaptive UI issues before they reach tablets and foldables?

1 Upvotes

One thing I've been thinking about while working on Android UI tooling:

A screen can look perfectly fine on a phone and still fall apart when the same app runs on a tablet, foldable, split-screen, or a resizable window.

A few examples:

  • A Modifier.width(360.dp) that quietly constrains a layout on a larger screen.
  • A fixed XML root width that doesn't adapt to the available space.
  • An android:screenOrientation restriction that gets in the way of multi-window or foldable experiences.
  • A layout that technically renders but leaves a huge amount of unused space.

The tricky part is that these issues don't always show up during normal phone testing or code review.

I've been building ViewLint, an open-source Gradle plugin that looks for some of these risks through static analysis across Jetpack Compose, XML layouts, and AndroidManifest configuration.

It currently generates HTML, JSON, and SARIF reports, so findings can also be reviewed in CI.

I'm still evolving the rules, and I'm particularly interested in getting the false-positive rate right. Static analysis shouldn't flag every fixed dimension as a problem — sometimes a fixed size is exactly what the design requires.

I'm curious how other Android teams approach this:

  1. Do you have automated checks for tablet and foldable layouts, or is it mostly manual testing?
  2. Do you catch these issues during PR reviews, UI tests, or only after release?
  3. Would Android Lint custom checks be your preferred way to enforce these rules?

I'd genuinely like to hear how teams handle this in production, including approaches that are already working well.

GitHub: https://github.com/dev-vikas-soni/viewlint


r/androiddev • • 16h ago

Question AI reviews blocking my app’s updates

2 Upvotes

Hi all! I’ve built an app for couples that let’s you swipe and match spicy stuff to try out together, date ideas, or questions to get to know each other better. The app is on the Google Play store, but lately, Google has blocked my updates, referring to their policies regarding sexual content (my content never changed since the beginning).

The communication with them has honestly been an endless cycle of AI responses that are offering me 0 solutions. There are similar apps on the Play Store with millions of users, so I just want to speak with an actual person. It’s extremely frustrating, considering 50% of my couples have at least 1 Android user.


r/androiddev • • 14h ago

Discussion Play trader status declaration is due Feb 1, 2027, even if you don't target the EEA or UK

1 Upvotes

I went through Google's official Play Console help page on the trader status declaration and wanted to put the less obvious parts in one place. This is not legal advice — the help page says the same — and I'm not asking anyone to interpret it for my account.

Every active developer account has to declare in Play Console whether it is a trader or non-trader under EEA and UK law. The deadline for existing accounts is February 1, 2027, regardless of where apps are targeted or distributed. New accounts have to declare immediately when they are created.

If you miss the deadline, Google says it may block app updates and remove apps from Play globally. Misrepresenting your status (the example they give is declaring non-trader to skip verification or self-certification) can lead to account suspension or termination.

A few things that were easy to miss:

If you don't distribute apps in the EEA or the UK, the page says you can declare as a non-trader. At the same time, it also says the declaration must reflect whether you engage in commercial activities that classify you as a trader, and that you are responsible for keeping it accurate and current. Those two statements sit next to each other. I'm not going to try to reconcile them here.

In regions where the declaration has to be shown (the page names the EEA and the UK), consumers will see it. If you declare as a non-trader, Play will tell users in those regions that consumer-protection rights do not apply to contracts with you. Falsely claiming non-trader status is prohibited under the EU UCPD and the UK DMCCA, and Google says that can also lead to global removal.

Google points to a non-exhaustive list of criteria from European Commission guidance: a profit-seeking motive (for example paid apps, in-app purchases, or ad-sponsored apps on a regular or commercial basis), transaction volume, running development and publishing as a business, and legal status such as a D-U-N-S number. If you are unsure, the page tells you to talk to a legal professional. Google will not make that determination for you.

This declaration is separate from developer identity verification. You are not repeating the D-U-N-S process. If you are a trader, the D-U-N-S number you already provided will be shown on the app's detail page.

You can change the declaration later in Play Console if your business model or distribution changes. If you declare as a non-trader and Google later detects activity that may qualify you as a trader, they may ask you to confirm or update it. If you don't respond in the timeframe they give, apps may be removed.

If you declare as a trader, you also have to self-certify that you will only offer products or services that comply with applicable laws, and provide a terms of service link for each app. If you use a personal/individual developer account, you must provide a contact phone number, and your address will also be shown publicly.

From March 1, 2027 — which is also when Play moves to an online marketplace model in the EEA and the UK — users everywhere will see contact details, your D-U-N-S number in the App support section, and a Terms of Service link if you provided one. For an individual account that is a trader, a phone number and address will be displayed. In the EEA and UK, your developer/trader name will also replace "Google" in the "Offered by" field of About this app, and the self-certification will be shown.

Console path, according to the help page:

Account level: Play Console → Manage account → Account details → About you.

If you are a trader, also confirm it per app: Monitor and improve → Policy and programs → App content.

Official page: https://support.google.com/googleplay/android-developer/answer/17594752

I work on Android packaging, attribution, and store-listing monitoring tooling. This thread is not a sale.

Has anyone already got the "About you" trader status flow on their account, or is it still rolling out? And if you publish from a personal developer account, how are you thinking about the public phone and address display from March 1?


r/androiddev • • 1d ago

Recreated Trip.com splash animation in Jetpack Compose

10 Upvotes

Liked the Trip launch animation, so I recreated it. The logo's letters get swallowed by the orange dot, the dot stretches into a streak, and the streak drags a circular sweep behind it that reveals the first screen.

Source: https://repgem.com/trip-splash-android

Would love your feedback!

Inspired by the Trip.com app. The code is original and not affiliated with them.


r/androiddev • • 14h ago

Open Source I built an offline-first, Gradle-free Android IDE (Sandrix Studio IDE) on my phone that compiles Java/XML APKs even on 2GB RAM devices

Post image
1 Upvotes

Hey everyone,

​I don't have access to a PC, so I spent the last few months building Sandrix Studio IDE (com.sandrix.ide) directly on my low-end smartphone (Snapdragon 460, ~2.6GB usable RAM). My main goal was to create a self-hosted, zero-dependency Android IDE and build engine that doesn't rely on Gradle or heavy cloud servers, allowing developers with low-end phones to build real APKs completely offline.

​How the Build Engine Works

​Since running Gradle on constrained mobile hardware isn't feasible, I built a custom lightweight build pipeline directly inside the app using native/CLI Android build tools:

​Compilation: Uses ecj (Eclipse Compiler for Java) supporting Java 7 through Java 17.

​Resource Packaging: Direct integration with aapt2 for compiling XML layouts and resources.

​DEX & Optimization: Uses d8 for DEX bytecode generation and R8 for code shrinking/minification.

​Packaging & Signing: Handles final APK alignment and signing natively via zipalign and apksigner.

​Dependencies & VCS: Supports external .jar / .aar libraries and includes built-in Git integration (via JGit) plus an integrated terminal.

​Key Highlights

​Low Memory Footprint: Tested and verified full APK compilation on a legacy Samsung J1 with just 2GB RAM.

​Self-Hosted: Sandrix Studio IDE can compile and build its own APK directly on the device.

​Current Status & What's Next

​v1.0.0 is now live on GitHub. Right now, I'm working on embedding kotlin-compiler-embeddable to support native Kotlin compilation alongside Java without blowing up the RAM usage.

​Website / Download: https://ssasmitha616-art.github.io/Sandrix-Studio-IDE/

​GitHub Releases:

(https://github.com/ssasmitha616-art/)

​I'd love to hear your thoughts, feedback, or any advice on optimizing memory usage when running d8/R8 or kotlin-compiler-embeddable on constrained Android devices!


r/androiddev • • 9h ago

My app is finally getting some traction, so I’m moefying it. Too cringe?

Thumbnail
gallery
0 Upvotes

My app is a hobby generator called Hobby Randomizer. It’s been getting around 10–20 downloads a day for the past two weeks or so.

I love anime and usually find a way to work it into everything I do. Now that I’ve built an app of my own, I’ve been moefying it with a sassy tsundere mascot named Hobby-chan. She sends notifications like “Hobby-chan demands tribute. Go do something.” and “Your daily dose of productivity awaits, dummy.”

I know, I know. It’s cringe, but it’s my cringe. I want my app to have a little personality, and apparently that means getting sass by an anime girl for not using the app.

What do you think? Would Hobby-chan make you more likely to try the app, or would you turn her notifications off immediately?


r/androiddev • • 18h ago

Question How did you make short voice commands reliable in an Android push-to-talk assistant (on-device, English + Spanish)?

1 Upvotes

I'm building an Android push-to-talk voice assistant (Samsung Galaxy Z Fold, phone locked, Bluetooth button, on-device speech recognition only, English and Spanish). Short commands like "play music", "volume up" and the Spanish "súbele" get misheard a lot ("I muzyk", "swally", "William"), and the first word often gets clipped after the start beep.

For people who got this reliable in a real app: what exactly did you do, and how much did your success rate improve? Specifically:

  1. matching against a fixed command list by sound
  2. using the recognizer's multiple guesses
  3. word biasing or hotwords
  4. a buffer for clipped first words
  5. handling English and Spanish together

And how did you test on the real device, not just in code?


r/androiddev • • 1d ago

Discussion I built a Gradle plugin to catch Android layout issues that can break on tablets and foldables

10 Upvotes

One thing I've been thinking about while working on Android projects is how easily layouts that look perfectly fine on a phone can break when the app runs on a tablet, foldable, or in resizable multi-window mode.

Some examples:

- A Compose screen using "Modifier.fillMaxWidth().height(600.dp)" that doesn't adapt to available space.

- "requiredSize()" forcing dimensions beyond the available constraints.

- XML layouts with oversized fixed dimensions.

- Activities with orientation restrictions that prevent flexible resizing.

These aren't necessarily bugs on a typical phone configuration, but they can become real usability issues on larger or resizable screens.

I wanted to explore whether some of these patterns could be caught automatically during development, rather than discovering them through manual testing.

So I built ViewLint, an open-source Gradle plugin for static analysis of Android adaptive-layout risks.

A few things it currently checks:

1. Jetpack Compose

- Fixed "width()", "height()", and "size()" modifier usage.

- Missing adaptive handling in relevant modifier chains.

- "requiredSize()" overrides.

2. XML layouts

- Fixed root dimensions.

- Large fixed inner dimensions.

- Deprecated "AbsoluteLayout" usage.

3. AndroidManifest.xml

- Activity "screenOrientation" restrictions.

- "maxAspectRatio" constraints.

4. CI integration

- HTML reports that work offline.

- JSON and SARIF 2.1.0 output.

- Baseline support for existing issues.

- "failOn = "NEW"" to prevent newly introduced findings from passing CI.

The goal isn't to claim that every fixed dimension is a bug. Fixed dimensions can be perfectly intentional. Static analysis can identify suspicious patterns, but developers still need to evaluate the context.

Quick start:

plugins {

id("io.github.dev-vikas-soni.viewlint") version "1.0.0"

}

Run:

./gradlew viewlint

I'm the developer behind this project, and I'd particularly appreciate technical feedback on the rule design.

A few things I'm interested in discussing:

- How do you distinguish intentional fixed dimensions from actual adaptive-layout problems?

- Which Compose patterns should be considered before reporting a fixed dimension?

- Are there important foldable/tablet compatibility issues that static analysis could catch but usually doesn't?

Source code: https://github.com/dev-vikas-soni/viewlint

I'm interested in improving the accuracy of these checks, especially avoiding false positives in real-world Android projects.


r/androiddev • • 23h ago

Spatial UI architecture ideas for ChromaTerminal XR & A.E.G.I.S. (Jetpack Compose for XR)

0 Upvotes

Exploring spatial UI and voice-triggered workflows for ChromaTerminal XR and A.E.G.I.S. on Android XR.

(UX concept visualization — early motion exploration prior to live hardware testing.)

One of the biggest challenges in spatial computing isn't just rendering panels in 3D—it's keeping the view clean until a tool is actually needed. In this concept flow, the assistant stays purposeful instead of hovering aimlessly, spawning a spatial terminal on voice command and gesture to run active content, then transitioning into a seated mixed-reality media view.

Building on Kotlin and Jetpack Compose for XR with a focus on practical training and SOP workflows. Curious how other Android developers approach spatial clutter vs. quick-access controls in XR interfaces. Architecting this spatial UX loop specifically for full-color 6DoF waveguide AR glasses like the RayNeo X3 Pro (r/RayNeo), so A.E.G.I.S. and floating terminal panels only appear on voice or gesture command without cluttering your field of view

cc u/Android Developers u/GDG Nairobi

#AndroidXR #JetpackXR #JetpackCompose #Kotlin #SpatialComputing #MixedReality #BuildInPublic #KenyaTech source code: https://github.com/murayijacquiline-max/ChromaTerminal-XR


r/androiddev • • 1d ago

Discussion Continues Location tracking Issue

0 Upvotes

I'm facing a recurring issue with background location tracking on Chinese Android devices (Xiaomi, OPPO, Vivo, Realme, Huawei, Samsung etc.).

Location tracking starts successfully but automatically stops after some time, even when the required permissions are granted.

Interestingly, the same implementation works perfectly on iOS and stock Android devices.

I've tried multiple solutions, but the issue keeps coming back.

**Has anyone found a reliable, production-ready solution for continuous background location tracking across different Android OEMs?**

I'd love to hear your real-world experience and suggestions. Thanks!


r/androiddev • • 2d ago

Open Source Museum experience with kotlin

151 Upvotes

I made a demo with KMP to showcase a museum animation interaction

Source code: https://github.com/mejdi14/KMPOddScroll

Live demo: https://mejdi14.github.io/KMPOddScroll/


r/androiddev • • 2d ago

Compose Hot Reload for Android/CMP Is Completely Free for Everyone

Thumbnail
hotswan.dev
54 Upvotes

Excited to announce that Compose HotSwan is now completely free. Compose HotSwan is a hot reload solution for Android and Compose Multiplatform that allows you to apply code changes to your running app in real time.


r/androiddev • • 1d ago

Experience Exchange Hide personal details on google play listing in Netherlands

0 Upvotes

I'd like to publish an app containing ads on google play store, but I don't want to expose all my personal data on the listing. What's the cheapest option in the Netherlands to hide behind a legal name and a virtual address that could be affordable for a hobby developer? I assume it should be eenmanszaak with a virtual address or something


r/androiddev • • 1d ago

Rayo: I made a new E2E test suite, open-source with integrated mocking and more

2 Upvotes

Hey android dev, I made rayo and I think is useful enough that warrants sharing it.

I love Maestro but from my experience at work, e2e are much more than just running some steps. You need to have fast execution, easy install of the testing tooling, clear reporting of the e2e errors and if you want to mock them everything get complicated really fast.

That's why I've been thinking of creating a tool that covers these pain points and more, a CLI tool that is a single binary.

- Is fast: it detects changes smartly (on average my test went 2x as fast minimum in rayo vs maestro)

- Runs most Maestro flows as is (so basically no migration changes)

- Backend, GPS and camera mocking built in (useful for maps, and stateful apps)

- Records mocks from your real API (you no longer need a external tool)

- Clear failure reports: the step, the cause, and the screen (it will make screenshot, create state dumps, etc so you can check it later, very useful on the CI)

- Retries, flaky detection, JUnit reports (even my perfect e2e test failed so I just gave up and added retries and good reporting for them)

- One small binary, only needs adb as dependency (this is my favourite fact: only one binary, so no need to setup anything, it just works)

Check please, any feedback is welcomed :)

Repo: https://github.com/nanihadesuka/rayo

Docs: https://nanihadesuka.github.io/rayo/


r/androiddev • • 1d ago

I read 1,503 one-star Play Store reviews across 59 apps. Price was the complaint in 9 of 10 categories, which is why I stopped counting it.

0 Upvotes

I read 1,503 one-star Play Store reviews from 59 Android apps, across ten categories. I was trying to find out whether complaints can pick a market for you. The first thing they did was break my own method.

Nine of the ten categories had "expensive" or "subscription" as a complaint in at least three different apps. When a complaint turns up in nine categories out of ten, it stops describing a gap. It is just the cost of having a paid app. If I had ranked by raw counts I would have found ten markets and been wrong about all of them.

So I only counted a complaint as a gap if it was the second one in that category, and not about money. That left very little.

Screen time was one. The two biggest apps sit at 2.98 and 1.52 stars with a million installs each. Their bad reviews are about enforcement and billing: "doesn't block the child's device", "cannot block Roblox", "they make the account tab inaccessible so you can't stop auto pay". The 1.52 one deserves a footnote. Most of its one-star reviews are written by children. "I'm 11", "my dad installed this". A terrible rating there is not the buyer's opinion, and rating and revenue can point in opposite directions.

Accessibility and AAC was the other. Avaz is 3.38 with 100k+ installs, Spoken is 3.8. The repeated complaint is that the speech itself is behind the subscription. "Speaking is only for people who are PAYING". "Once your free trial ends you can't even use the speaking function". Second to that, the licence does not follow the person from phone to tablet, which matters when the tablet is how they talk. That is a real gap, and it comes with a gatekeeper, because those buyers arrive through speech therapists rather than the Play Store.

Personal finance had the strongest pain and the highest cost to enter. Four of six apps had login or bank-sync complaints in three or more apps: re-authenticating every time it opens, data loss after an update. Bank aggregation and a security review are not a weekend.

The rest were ads in a medical log, unskippable ads between levels, and one category where every app failed differently, which usually means the category is healthy.

Two things I stopped believing. That a review count can rank an opportunity. It describes pain better than any survey, and it cannot tell you whether anyone will pay you or whether you can reach them. Seven of the ten categories had nothing in them I would build for a small team, and the reason was never the software. And "users hate subscriptions" as a finding. It is true everywhere, it is the loudest thing in the data, and it is close to useless, because the same users keep paying. What they hate is the paywall in front of the core function, and the cancellation.

The caveats matter as much as the result. Play Store only, US English store, newest 120 reviews per app, so recent versions are overrepresented. Keyword bucketing overcounts words like "need" and "wrong". Reading 1,503 by hand is what made it useful, and it is the part that does not scale.

If you have looked at your own reviews, I would like to know where this is wrong.


r/androiddev • • 2d ago

Question Does anyone use browser-based emulators for sharing builds?

0 Upvotes

Has anyone used something like Appetize to share builds with designers or PMs? Distributing test builds with PR changes efficiently has always been an issue for us.


r/androiddev • • 3d ago

Open Source Reading Android's UI tree in 13ms via app_process instead of 2.2s with uiautomator dump (open source)

45 Upvotes

I got tired of waiting on adb shell uiautomator dump for black-box UI automation. On an API 37 emulator it took 2.16s at the median, and on my HONOR X8 (Android 13) it sat on the Settings home page for 11.5s before failing with ERROR: could not get idle state.

So I built phonedriver (Rust + a ~40 KB Java helper, AGPL-3.0).

Like scrcpy, it pushes a small dex jar over adb and starts it with app_process as the shell user. No APK installed, no root, no AccessibilityService to toggle, and it exits when the connection closes. Inside, it keeps a UiAutomation connection warm, injects input through InputManager, and streams H.264 from MediaCodec to detect when animations actually settle instead of sleeping.

Numbers (median of 50 runs, raw CSVs in the repo):

Operationphonedriveradb
Screen read (API 37 emulator)12.7 ms2,163.7 ms
Screen read (HONOR X8, Android 13)78.5 ms2,507 ms
HONOR X8 Settings home page110 mstimed out (11.5 s)
Payload size (Display settings)461 bytes25.3 KB XML

The Android quirks that took most of the time:

  • stale trees unless you call clearCache() before every read (and Android 12 has a different signature, clearCache [int], so it needs reflection fallback)
  • connecting UiAutomation with flags 0 silently unbinds TalkBack; you need FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES
  • MediaCodec isn't a heartbeat—on a static screen it bursts and then goes silent for 5s, and a Samsung Galaxy A53 (One UI 8) emitted zero frames until a contributor routed it through an OpenGL relay
  • recycled ListView node IDs survive scrolls with completely different row text, so element refs have to verify role/label/bounds on every tap

Main use case is driving or E2E-testing installed apps (from scripts, CI replay, or AI agents) without source access or a test APK. Apps that hide their accessibility tree (like WeChat) fall back to local OCR, and everything requires adb.

https://phonedriver.dev

Repo: https://github.com/hridaya423/phonedriver

Benchmarks: https://phonedriver.dev/benchmarks

Only tested on emulators, a HONOR X8, and a contributor's Galaxy A53 so far, would love for more testing and seeing if something breaks :)


r/androiddev • • 2d ago

Tips and Information tiny .aiignore and pre-warmed git worktree setup that stopped parallel coding agents from triggering 4-minute cold gradle syncs on our laptop

Post image
4 Upvotes

running 2 or 3 coding agents in parallel sounds great until i really tried it on a multi-module gradle repo. say, put them in one checkout and they immediately fight over build.gradle and lock .git/index.lock. create a fresh git worktree per task and gradle eats four minutes re-indexing dependencies while spawning four daemons that chew through 16gb of ram.

here is the tiny workflow cleanup that finally made parallel agents usable on gradle without melting my prescious laptop:

  1. keep exactly two permanent sibling worktrees checked out next to main (e.g. ../repo-wt-1 and ../repo-wt-2) instead of creating and deleting fresh folders per ticket. resetting a warm worktree to a new branch preserves local gradle build outputs and avoids cold syncs.
  2. drop a strict .aiignore in the repo root blocking build/, .gradle/, generated protobuf/kapt folders, and huge fixture dumps so agents stop burning context reading compiled artifacts.
  3. cap parallel daemons in ~/.gradle/gradle.properties (org.gradle.workers.max and shared build cache enabled) and keep agent sessions isolated via /worktree or an ide manager like jetbrains air where real intellij inspections verify the diff afterward

nothing fancy, just stopped parallel agent runs from turning into fan noise and merge soup. any other gradle-specific flags folks here set when running multiple local coding agents?


r/androiddev • • 2d ago

Discussion Android TV developers: How do you handle in-app purchases? Are users abandoning purchases because the process is too inconvenient?

4 Upvotes

I’ve been developing Android TV apps for a while, and one thing I’ve been struggling with is in-app purchases and payment conversion.
Unlike mobile phones, Android TV devices don’t have touchscreens. Navigating purchase screens with a remote control, entering account information, and completing payments can be frustrating.
I’ve noticed that some users seem interested in premium features but may give up when they reach the payment process.
I’m curious how other Android TV developers handle this:
Do you use Google Play Billing directly on the TV?
Do you offer a one-time lifetime purchase, subscription, or both?
Have you tried QR code payments, where users scan a code with their phones to complete the purchase?
Would a web-based checkout linked to the user’s TV app be a better experience?
Do you offer a free trial or limited free features to reduce purchase friction?
I’m particularly interested in solutions that work well across different Android TV devices and Google TV.
Would love to hear about your experiences, especially what has actually improved conversion rates.


r/androiddev • • 2d ago

Designing a dependency-free, anonymous screen-view tracker for Android (minSdk 16, stdlib only): lessons and code

Thumbnail
gallery
0 Upvotes

Hi r/androiddev,

I wanted to know which screens of my apps are actually used, without shipping a big analytics SDK and without anything that can identify a user. I ended up writing a small library for it, and the constraints I set made for some interesting Android problems, so I'd like to share the design and get feedback.

Code (MIT): https://github.com/ClewigFr/AssAndroid

**The constraints**

- Kotlin stdlib only: plain HttpURLConnection, org.json, java.util.concurrent. No coroutines, no androidx, no Retrofit/Gson

- minSdk 16, only the INTERNET permission

- Never throw into the host app

- Nothing that identifies a user or a device

**What it sends, and nothing else**

Each screen view is `{page, sessionId, timestamp}` plus the app's UUID:

- `page` is a UUID declared per screen

- `sessionId` is a random UUID generated on each process start and never persisted, so two launches can't be linked

- `timestamp` is "milliseconds elapsed since the view" rather than epoch time, so a wrong device clock doesn't matter: the server subtracts it from its own clock

Integration is one `getInstance(context, AssConfig(endpoint, appId))` in your Application and a `logScreen(pageUuid)` per screen. There's also an optional `assCompose` module with a `TrackScreen` composable, kept separate so the core library doesn't pull Compose.

**Delivery**

- Views are batched in memory and sent once there are 50, when a new view arrives and the batch is older than 10 minutes, or when the app goes to background. Both thresholds are configurable (20-200 views, 2-60 minutes) to trade battery against freshness

- Every upload and every access to the retry file runs on a single serial executor (one daemon thread), so uploads never overlap and a retry can't race a send

- 200/206 mean accepted, 400 means rejected (dropped, never retried), anything else is retried after Retry-After if given, else with an exponential backoff from 1 to 30 minutes

- Bodies are gzipped only after the server has answered with `Accept-Encoding: gzip`

**A few Android-specific problems I had to solve**

- Detecting "app went to background" without androidx.lifecycle: an ActivityLifecycleCallbacks counting started activities; when the count drops to zero, the batch is sent

- TLS 1.2/1.3 on API 16-19, where they exist but are off by default: a custom SSLSocketFactory that turns them on, and never enables SSLv3 or TLS 1.0/1.1

- Keeping views through offline periods and process death: every batch is written to a retry file in the cache dir before it's sent, and removed once the server has accepted it. The file is capped at the 1000 most recent views and 7 days, so a device offline for months can't grow it forever

- Staying out of the host app's way: no ContentProvider auto-init (the app calls getInstance itself), one daemon thread, and nothing ever thrown to the caller

The library needs a small backend to receive the views; mine is open source too (Ktor + PostgreSQL) and self-hostable, but this post is about the Android side.

**Trade-offs, honestly**

- Screen views only, by design: no custom events, no per-user funnels, no retention cohorts

- Page IDs are UUIDs declared up front, not automatic screen names

- No cross-launch metrics like "returning users": that's the price of not persisting any identifier

- Batching means views reach the server with a delay, up to the next flush

**Where I'd like feedback**

  1. Process death can still cause one kind of inaccuracy: if the process dies after the server accepted a batch but before the file is cleaned up, that batch is sent again on the next launch (a duplicate; nothing is lost). Would you close it with an idempotency key per batch on the server, or accept it for screen-view counts?
  2. Would you expect WorkManager here despite the "no androidx" constraint, and what would you gain in practice?
  3. Anything you'd consider a privacy leak I missed?

Thanks for reading, happy to answer questions.


r/androiddev • • 2d ago

Android Development Learning

Thumbnail
learnandroid.dev
1 Upvotes

I’m developing a website for learning Android development with simple notes, key concepts, and interview preparation questions. It’s completely free. Suggestions and feedback are always welcome!


r/androiddev • • 2d ago

Question Shared Test devices

3 Upvotes

How do you guys share physical test devices on remote Android teams?

Do developers generally have their own devices or do you have some way of accessing a shared pool remotely?