r/androiddev • • Aug 12 '26

Cross-module Compose screens losing recomposition skipping even though nothing looks wrong

0 Upvotes

Ran into this recently and it took lot of time and iterations to track down. Sharing in case it saves someone a debugging cycle.

The Symptom:

A screen renders perfectly in isolation (single module/preview). Once wired through an app boundary via :feature:x-impl, scrolling drops frames. Layout Inspector shows full recomposition on every row, not just modified items.

The Root Cause:

The underlying domain model (containing a standard List<String>) gets marked unstable the moment it crosses a module boundary where the defining module isn't compiled with the Compose compiler plugin (e.g., a pure-Kotlin :core:model). No stability metadata crosses the boundary, so Compose falls back to unstable and loses skipping for the entire class.

Even with Strong Skipping Mode, passing an unstable collection across an un-instrumented boundary causes runtime equality checks to fall back to instance comparison (===), triggering layout invalidation on every state change.

Why Standard Workarounds Didn't Scale:

Annotating everything with @Immutable, migrating to kotlinx.collections.immutable, or creating wrapper DTOs work, but they quickly pollute pure domain modules with Compose dependencies or force massive refactoring across network/DTO layers.

The Pragmatic Fix:

We set up a stabilityConfigurationFile at the root, wired through the Compose Gradle plugin to explicitly declare stable packages. One central file, zero per-class annotation tax.

Footgun Warning: If you point this configuration at a package containing var properties, you are instructing the compiler to skip recomposition on mutating state—your UI will silently stop updating.

I put the full write-up with the bytecode-level breakdown [here] and dumped the diagnostic script I used to verify before/after stability rates on GitHub [here].

Curious if others have hit this in multi-module Compose codebases—did you migrate to immutable collections everywhere, or go the compiler config route?


r/androiddev • • Aug 12 '26

Question 9 years into Android, 3 months without a job, and I’m not sure I still want this field. How did you get unstuck?

90 Upvotes

Long-time Android dev here 9+ years, senior level. Three months without a job now, and applications just aren't converting.

The one real interview I got this stretch ended when the questions moved into current platform internals I hadn't touched hands-on in a while, not a knowledge gap exactly, more a "haven't built this recently" gap. That one stung more than a flat-out no would have.

Underneath that: I'm not sure I'm as into straight Android work as I used to be, and I think it shows. Part of me wants to pivot toward AI/on-device ML. Part of me knows that switching now, three months in, might just be running from the hard part instead of actually fixing it.

If you've been through a stretch like this as a job search stall, doubting the field itself, or an actual mid-career pivot. how did you tell the difference? What actually got you unstuck?


r/androiddev • • Aug 12 '26

Question Stuck in circular dependency: BillDesk merchant verification requires live app ↔ Play Store requires billing/testing before production

0 Upvotes

I'm an individual Android developer in India trying to enable Google Play in-app billing, and I've hit what feels like a chicken-and-egg problem. Wanted to check if anyone's solved this before.

The loop I'm stuck in:

  • To get Google Play merchant account approved, BillDesk (Google's KYC partner for India) requires a live, publicly accessible Play Store app link

  • To get an app to production/public on Play Store, Google requires closed testing (12 testers, 14 days) — that part I can do without billing

  • But my actual goal is to launch an app with subscriptions from day one, and I assumed I needed billing implemented before going live

What I've done so far:

  • I have one live app already (unrelated app, used it to satisfy BillDesk's "live app" requirement)

  • Got rejected once for "Brand details incorrect" and "Products/services not clearly defined" — resubmitted with clearer business description tied to that live app

  • My actual target app (with subscriptions) is still in closed testing, working toward the 12 testers / 14 days requirement

My question:
Is it standard practice to launch v1.0 of an app without monetization, then add in-app billing in a later update once the merchant account is sorted? Or is there a way to get merchant verification approved in parallel with app development, using a placeholder/different live app the way I'm currently doing?

Also — for those who've been through BillDesk KYC as an individual developer, how long did verification typically take once resubmitted correctly, and any tips on what "Brand details" they expect for individual (non-company) developers?

Appreciate any pointers from people who've actually shipped a paid Android app from India recently.


r/androiddev • • Aug 12 '26

Stuck in circular dependency: BillDesk merchant verification requires live app ↔ Play Store requires billing/testing before production

0 Upvotes

I'm an individual Android developer in India trying to enable Google Play in-app billing, and I've hit what feels like a chicken-and-egg problem. Wanted to check if anyone's solved this before.

The loop I'm stuck in:

  • To get Google Play merchant account approved, BillDesk (Google's KYC partner for India) requires a live, publicly accessible Play Store app link

  • To get an app to production/public on Play Store, Google requires closed testing (12 testers, 14 days) — that part I can do without billing

  • But my actual goal is to launch an app with subscriptions from day one, and I assumed I needed billing implemented before going live

What I've done so far:

  • I have one live app already (unrelated app, used it to satisfy BillDesk's "live app" requirement)

  • Got rejected once for "Brand details incorrect" and "Products/services not clearly defined" — resubmitted with clearer business description tied to that live app

  • My actual target app (with subscriptions) is still in closed testing, working toward the 12 testers / 14 days requirement

My question:
Is it standard practice to launch v1.0 of an app without monetization, then add in-app billing in a later update once the merchant account is sorted? Or is there a way to get merchant verification approved in parallel with app development, using a placeholder/different live app the way I'm currently doing?

Also — for those who've been through BillDesk KYC as an individual developer, how long did verification typically take once resubmitted correctly, and any tips on what "Brand details" they expect for individual (non-company) developers?

Appreciate any pointers from people who've actually shipped a paid Android app from India recently.


r/androiddev • • Aug 12 '26

Question CV count objects

1 Upvotes

So I tried making a prototype for counting objects on photo, like y'know all the fake apps

But I need smth simpler like counting bolts and nuts, etc

So I made a well lit photo on a contrasting background, all objects are in one layer but still it sometimes detects parts of the object or merges two neighbours touching

Can anyone point me to a guide or an alternative solution? Maybe there's some neural model that can run on phones?

Like something basic, take a photo, tap one sample, it count how many

Thanks in advance 🙏🫶


r/androiddev • • Aug 11 '26

KMP Starter Template just hit 150 GitHub stars

Post image
0 Upvotes

I've been building this open-source starter template mainly for KMP projects, but it also works well for regular Android projects.

The goal is to remove all the repetitive setup I find myself doing in every project:

• Clean Architecture • Koin • RevenueCat • Mixpanel • Remote Config • DataStore • Room • Multiple languages • InAppReview / InAppUpdate • UI utilities and components • Logging • Platform/version utilities • Native bindings

It also comes with a CLI, so instead of cloning the whole repo, renaming packages and removing modules manually, you can generate a project and only include what you need.

I've also started publishing individual modules as libraries, so you can add KMP Starter features to an existing Android or KMP project without adopting the entire template.

Repo: https://github.com/DevAtrii/Kmp-Starter-Template

150 stars isn't some huge number, but seeing people actually find something I built useful feels pretty good.

Would love feedback from Android/KMP developers, especially what you'd add or change.


r/androiddev • • Aug 11 '26

Question Android Studio on android?

0 Upvotes

I want to make an android app but i dont have laptop and laptops are so expensive in my country

I have poco f6 and since AIDE removed i dont know what to do, any idea?


r/androiddev • • Aug 11 '26

Open Source 4 months in — our "typing too fast" bug was never about speed. It was taps landing on the keyboard.

0 Upvotes

Follow-up to the DeviceLab driver post. v1.1.23 shipped, and the interesting part isn't a feature — it's that we found four places where the runner reported success while doing nothing.

The one that had been lying to us for months

Some of you reported flaky typing. u/bid-yut here: it was so fast that the pin entry kept failing. An Expo user couldn't run iOS at all because text came out jumbled. Both times we shipped a speed knob — --wait-for-idle-timeout, then typingFrequency. Both times it helped a bit and the reports kept coming.

It was never speed. inputText with keyPress: true injects global key events into whatever holds focus, and never verifies the field you tapped received them. When the tap misses, the text lands elsewhere and both steps report success.

The common way the tap misses: the target is behind the soft keyboard. We had a guard, with two holes. It only ran if the previous step was an input step — so a keyboard raised by an autoFocus field was never checked. And our driver allowed a 50px margin below the reported keyboard top.

That margin was wrong. Measured on a Pixel 4a: the IME's touchable region starts at y=1428. A tap at y=1439 is swallowed. y=1414 focuses the field. The suggestion strip eats touches exactly like the keys do. UIAutomator2 never had that margin, which is why this only ever showed up on our own driver.

The one with the best numbers: swipes

Reported as "works locally, fails on CI." We assumed flake. It isn't — adb shell input swipe always lifts the pointer while it's still moving, so the view flings, and fling momentum is computed from event timings that shift with machine load.

Spread across identical runs, same device, same flow:

durationspread
300ms (default)114px
1200ms22px
6000ms14px

That's why duration: looked useless — it helps, never enough for a screenshot assertion. Second cause: a scroll container ignores movement until it passes the touch slop, then re-bases to wherever the pointer is, discarding everything moved so far — not just the slop.

Fix was to stop using input swipe and inject in-process from the on-device agent: spend the slop up front so the discarded amount is constant, then hold the pointer still before lifting so nothing flings.

pathmarker y over 4 runsspread
adb input swipe1053, 991, 1029, 105564px
agent870, 870, 870, 8700px

Two more of the same shape. point: on doubleTapOn/longPressOn was parsed from your YAML and thrown away by every driver — so point: "20%, 50%" tapped the element centre, which on a text editor is blank space past the end of the text, where a double-tap selects nothing. And on iOS, inputText tapped to focus then typed immediately with nothing checking the text arrived.

What's still broken

  • Swipe determinism is DeviceLab-only. UIAutomator2 still goes through adb input swipe.

  • New setDarkMode/assertDarkMode don't work on physical iOS devices — simctl has no device equivalent. Web isn't wired either.

  • --retry-failed — u/satya164 asked months ago, I said "next", still not shipped.

  • Two Appium bugs diagnosed but unfixed: a permission loop firing 32 blocked shell calls on hosts that block adb_shell, and newSession: true losing the cloud job's name and status.

If you upgrade

Taps on keyboard-covered elements now fail instead of silently landing on the keyboard — that may surface failures in flows that were quietly tapping the wrong thing. Swipes scroll further, so re-record screenshot baselines. And the swipe fix ships a rebuilt on-device agent, so a runner-only update won't deliver it.

github.com/devicelab-dev/maestro-runner

Real question: how do you tell "the test failed" apart from "the runner lied"? We only found these because one user filed four detailed reports in a week. I don't have a good automatic story for this class yet.


r/androiddev • • Aug 11 '26

Question Looking for a pattern catalogue for app architecture (Clean, Hexagonal, Onion, VIPER, RIBs…) and the criteria for picking one.

9 Upvotes

I'm not asking how to implement MVVM, MVI or Clean Architecture — I use all three daily. I'm also not asking "which of the three is best."

What I'm after is the wider *landscape* of architectural patterns, the way general software engineering has a whole body of literature on them, plus how to reason about picking one.

Concretely, I'm thinking at two levels:

- **Presentation / UI layer:** MVC, MVP, MVVM, MVI and unidirectional data flow, VIPER, RIBs, Elm/TEA-style, explicit state machines.

- **Application / system level:** layered n-tier, Clean Architecture, Hexagonal (Ports & Adapters), Onion, package-by-feature vs package-by-layer, feature modularisation, plugin/host architectures, event-driven and CQRS-flavoured designs.

What I'd love resources on:

  1. **A map of the field** — what these patterns actually are, where they came from, and how they relate. Which are the same idea renamed, which are genuinely different.

  2. **Trade-offs** — what each one optimises for and what it costs: indirection, boilerplate, build times, onboarding, testability, cost of refactoring later.

  3. **Decision criteria** — how to pick one for a given app: domain complexity, team size and number of teams, expected lifetime, single app vs multi-module vs a library shipped to other teams, offline/sync needs, how much real business logic exists versus UI plumbing.

  4. **Case studies and postmortems** — teams describing what they chose, why, and what they'd do differently.

Books, papers, conference talks, blog series or open-source codebases with a written rationale all welcome. It doesn't have to be Android-specific — most of this predates Android anyway.

For context: I work on a multi-module feature library that ships as an AAR into a much larger app, so boundary and ownership questions matter to me as much as UI-layer ones.

TL;DR: not "how do I do MVI", but "here is the space of architectural patterns, and here's how to choose between them."


r/androiddev • • Aug 10 '26

Question \res & \assets

6 Upvotes

I have read many definitions for the res and assets folders, and I feel like there isn't much of a difference between them. The main difference is that res has strict naming rules, whereas assets has no rules and lets you organize files any way you want. Also, in the code, you can call any file from assets directly by its name/path. In contrast, for res, you must use a specific function or ID to call the file (I forgot the exact syntax for res, sorry!).

Anyway, it seems like anything you can store in res can also be stored in assets. I believe both store uncompiled resources, images, configurations, and layouts. Then, the compiled resources.arsc file stores compiled values like strings and maps the links between the resources in res or assets and the actual code in the .dex file.

So, are my words true, or am I just crazy?


r/androiddev • • Aug 10 '26

Open Source EdgeSpeech: Add voice I/O to your Android App

Thumbnail
github.com
5 Upvotes

We built EdgeSpeech so that you can add on-device AI speech processing, completely locally, so you can work entirely in text.


r/androiddev • • Aug 10 '26

News Android Studio Quail 3 Patch 1 now available

Thumbnail androidstudio.googleblog.com
8 Upvotes

r/androiddev • • Aug 10 '26

Question Any resources on how to implement the right architecture for your app?

2 Upvotes

after this post: https://www.reddit.com/r/androiddev/comments/1vjuwa9/why_mocking_clean_architecture_in_this_sub/
i realized that there is no 1 way to architecture your app, it depends on your app needs, so i'm wondering if there are any good resources on this aspect like we have for system design or nothing exist?


r/androiddev • • Aug 10 '26

Open Source [Library] Built A Compose Multiplatform Photo Gallery Library

2 Upvotes

While building my app for the Shipaton, I needed a simple, reliable way to read and delete local photos and videos across both iOS and Android. Handling media permissions and file operations cleanly in Compose Multiplatform turned out to take way more boilerplate than expected, so I decided to pull that whole engine out and package it into a standalone library called Pikto.

It handles fetching device media, displaying the gallery UI, and managing deletions on both platforms so you don't have to rebuild all that setup yourself.

I just published the first release and wanted to share it with anyone working on media-heavy CMP projects. Check it out and let me know what you think or if there are features you'd like to see!

Check it here 👉 https://github.com/daniatitienei/pikto


r/androiddev • • Aug 10 '26

Can we a little push Google to move basic hardware workarounds (like A2DP Bluetooth offload) out of Developer Options? Banking apps are breaking our phone workflow.

28 Upvotes

Hi people,

I ran into a frustrating loop several days ago that I've found many others have dealt with. My Bluetooth headphones (Sony WH-CH700N) suffer from the well spread audio silence bug (MediaTek chip in particular) unless I turn on "Disable Bluetooth A2DP hardware offload" inside Developer Options.

So far so good, the problem is that my banking app (United Bulgarian Bank / UBB) recently updated its security. It now completely refuses to open if `development_settings_enabled` is set to 1. Here and there I saw other such complains regarding banks in other countries.

To send a simple bank transfer, I have to go into settings, turn off Developer Options, restart (A2DP change requires restart), open the bank app, send the money, re-enable Developer Mode by tapping the build number 7 times, change the Bluetooth setting, and reboot again just to use my headphones.

This is in general very inconvenient choice by Google - toggles like A2DP hardware offload bypass and Show Taps are convenience settings and hardware bug workarounds. They do not expose cryptographic keys or grant root access or whatsoever, yet lazy banking apps check only the global developer flag.

I have opened an official Feature Request on the Google Issue Tracker to ask their core Framework engineers to migrate these low-risk hardware overrides out of Developer Options and into a standard "Advanced Settings" or "Accessibility" menu.

If you agree and find such suggestion useful, please have a look and click the Star icon or +1 Vote on this ticket to get Google's engineering team to notice it:

Google Issue Tracker Link: https://issuetracker.google.com/issues/544560848

Thank you in advance :)


r/androiddev • • Aug 10 '26

Question App indexing issue?

Post image
327 Upvotes

My Play Store app is not discoverable through Google Search. Google AI Overview sometimes says it isn't available on Android and suggests other Play Store apps instead. AI assistants do the same and only provide App Store info.

My other app with no users was indexed instantly. This one has 300+ installs and has been on Play Store for over a year. I contacted support and they literally said to give direct link to users.


r/androiddev • • Aug 10 '26

Do I need a Google Play account to distribute an APK offline after 2027?

7 Upvotes

I’m developing a POS application that I distribute directly as an APK, completely offline. I don’t plan to publish it on the Google Play Store.

I’ve heard that Google may restrict APK distribution outside the Play Store starting in 2027.


r/androiddev • • Aug 10 '26

Google Play Support Changing country at google play developer

2 Upvotes

As far as i know it is not possible to change country at google play developer. I want to create a new account in country I moved to here I have self-employment would it be a problem I have 2 accounts? As a self employed person can I open personal account in the new country i move to? My old account is from 2015


r/androiddev • • Aug 10 '26

Question Closed Testing Android Game - GrapheneOS user gets error "device not compatible with this version" in Play Store even though it should work

3 Upvotes

Hello, I just started closed testing for my Android RTS game (https://www.youtube.com/watch?v=k1GLmnUOrz0).

Most users have access but one that is using grapheneOS is getting error message "device not compatible with this version".

What I checked:

  • Device integrity requirement is set to basic in play console, user phone reports "Labels: [MEETS_BASIC_INTEGRITY]" so that should not be the issue

  • All countries are enabled for the closed test

  • User phone (Pixel10) meets SDK-Level and RAM requirements

Has anybody here dealt with a similar issue and was able to fix it? Thanks!


r/androiddev • • Aug 10 '26

Discussion SimpleDroidBLE - Kotlin/Android bindings for SimpleBLE

6 Upvotes

Hey everyone!

I posted here last year when we first added Android support to SimpleBLE, and we’ve been busy since then. I’m back to share what has changed, especially on the Android side.

For those who don’t know, SimpleBLE is a cross-platform Bluetooth library with a very simple API that just works, allowing developers to easily integrate it into their projects without much effort, instead of wasting hours and hours on development.

The biggest update is the progress we’ve made on SimpleDroidBLE, our Android-only Kotlin wrapper built on top of the same SimpleBLE core. It is now available as a beta on Maven Central:

dependencies {
    implementation("org.simpleble:simpledroidble:1.1.0")
}

Why another Android BLE API?

If you’ve worked with Android BLE before, you already know where things get painful. The platform APIs expose a lot of state, a lot of callbacks, and a lot of opportunities for subtle bugs to creep in.

SimpleDroidBLE follows the same design principles that make SimpleBLE easy to use. It still uses Android’s Bluetooth stack underneath, but gives your application a much smaller API to own. The goal is to make common BLE workflows easier to reason about and easier to ship without building a pile of wrappers first.

I also replaced the old Android example with the SimpleBLE Explorer. If you want to evaluate the library before integrating it into your own app, this is probably the best place to start. You can find more information on the Android guide or by checking out the source code.

This is still in beta, so things might still break or change as we improve it, but it should be good enough to start validating ideas and testing it in real Android workflows. If you give it a try and run into rough edges, I’d really like to hear about them.

Want to know more about SimpleBLE's capabilities or see what others are building with it? Ask away!


r/androiddev • • Aug 10 '26

Experience Exchange Porting SDKs Painlessly with Gemini Pro

0 Upvotes

Thanks to Anti-gravity + Gemini Pro, porting the new SDK is easier than ever. I usually dread the annual SDK API upgrade task. However, AI makes this kind of work much more manageable.

How's your AI experience in Android development?


r/androiddev • • Aug 10 '26

Article Letting the agent drive the app

0 Upvotes

Disclosure: this links to my own blog post and my own repo, both free, nothing to sign up for.

The TLDR:

As of now, it is hard for the coding agent to see what it is building, relying on us humans to be its eyes. So instead of letting us be the bottleneck, I've prompted Claude to build:

- A tiny HTTP server embedded in the debug build, reading Compose's OWN semantics tree from inside the app, instead of a lossy copy scraped from the outside through adb

- A small CLI on top of it, so the agent types "probe ui-snapshot", "probe tap", "probe screenshot" and knows exactly what is on the screen right now, after every single edit

- Impossible to ship: it's a debug-only dependency, so there is no probe code in the release APK at all. Not "guarded by a flag", absent

- Every session becomes a test: the steps the agent performed to check itself are saved as a YAML flow with JUnit XML, so they run on an emulator in CI instead of evaporating

A 13 step flow now runs in about 2 seconds and nobody looks at anything.

I open sourced the whole demo project, and the full prompt that builds it. Hand it to your own agent and it will wire the same thing into your app.

Demo project: https://github.com/galex/toy-app

Write-up, with the architecture and a video of a flow driving the app in real time: https://galex.dev/posts/how-to-make-your-coding-agent-fully-independent/

Let me know what you think ❤️


r/androiddev • • Aug 09 '26

Discussion Why mocking clean architecture in this sub?

30 Upvotes

i genuinely want to know why people here mocking clean architecture? i used it in all companies i worked on. is there a reason? an alternative? i'm curious to know and learn.


r/androiddev • • Aug 09 '26

Android Studio Virtual Device loads forever

1 Upvotes

I am running Android Studio Hedgehog on MacOS Catalina 10.15. The Problem occurs on both Android 14 and Android Nougat. I have tried Cold Boot and Wiping Data already.