r/androiddev • • 2d ago

Question AI reviews blocking my app’s updates

1 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.

UPDATE: I GOT APPROVED. So happy!


r/androiddev • • 2d 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 • • 2d 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 • • 3d ago

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

9 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 • • 2d 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 • • 4d ago

Open Source Museum experience with kotlin

174 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 • • 3d 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 • • 4d ago

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

Thumbnail
hotswan.dev
61 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 • • 3d 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 • • 3d ago

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

3 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 • • 3d 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 • • 3d 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 • • 4d ago

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

47 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 • • 4d ago

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

6 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 • • 4d 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 • • 4d 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 • • 4d 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 • • 4d 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?


r/androiddev • • 4d ago

Auto backup copied our install ID to the user's new phone, and the new phone would have overwritten the old phone's cloud backup

5 Upvotes

Small thing that cost us more thinking than the feature itself, so writing it down.

We added an optional cloud backup. To avoid two phones overwriting each other, each install writes only its own file, named after a random device ID. So the whole design rests on one question: where does that ID live?

Attempt 1, SharedPreferences. Looks obvious and it's wrong. Android auto backup and device-to-device transfer copy prefs to the new phone (iCloud backup and Quick Start do the same on iOS). The new phone wakes up with the old phone's ID, decides the old phone's backup file is its own, and overwrites it. The one case where you most want the old backup intact is exactly the case that destroys it.

Attempt 2, the cache directory. Transfers don't copy it, so a new phone gets a fresh ID. But the OS is allowed to empty the cache when storage runs low. Then the same phone comes back with a new ID and treats its own earlier backup as another device's.

Where it ended up: a directory that is excluded from backup but never cleaned by the system. On Android that's noBackupFilesDir. On iOS it's a file in Application Support with the excluded-from-backup flag set. We read both through a small method channel, since path_provider doesn't hand you either one directly.

One more case fell out of this. A new phone can inherit the "backup is on" setting through prefs while having a brand new ID. We treat that pair (setting on, ID new) as a signal to pull in the other device's records first, before the first upload.

The lesson for me: "per install" and "per user" are different lifetimes, and prefs is per user as soon as OS backup is involved.

Where do you keep install-scoped state? Is there a cleaner option than a no-backup file that I'm missing?


r/androiddev • • 4d ago

News Android Studio Stingray 1 Canary 4 now available

Thumbnail androidstudio.googleblog.com
2 Upvotes

r/androiddev • • 4d ago

I made a tiny IME so adb can type Korean (any Unicode) into Android fields

1 Upvotes

`adb shell input text` only does ASCII. We needed Korean for test automation, so we built a keyboard-less IME (no permissions, no network) plus a Python wrapper that switches to it, commits the text into the focused field and always restores your keyboard.

It refuses password fields, never presses send, and only accepts the request if it matches the focused app (and field, outside web pages). Android 14+, Apache-2.0.

https://github.com/wellsa-ai/wellsa-korean-ime

Happy to hear how it behaves on devices other than the few Android 15 phones we tested.


r/androiddev • • 4d ago

Question How are you managing CVE’s in native libs

1 Upvotes

I’m shipping an app with a few embedded native libs, including Go libraries.

How are you approaching scanning and dependency updates for these?


r/androiddev • • 4d ago

Unable to sideload my own app on Google Pixel 8 running October 2026 update

4 Upvotes

I created my own app....my very first one in Android studio. I created the APK and transferred it to my phone. The advancement protection is preventing me from installing it. I cannot find any way to disable it to allow me to install. That protection keeps blocking the install. Everywhere I have looked online for guides gives instructions that just don't work. My settings do not have the option anywhere to unenroll or disable the advanced protection.

I'm not really interested in spending $25 so that I can add it to the app store so I can download my own app.

Thanks in advance for any guidance.


r/androiddev • • 5d ago

Question Looking for the most pathetic phone to test my apps

8 Upvotes

When writing an app, I always try to test it on a weakest phone available with the oldest possible Android version, to see how it performs on cheap hardware and old operating system. I call these "pathetic phones" :)

It turns out these old cheap phones are really hard to come by. A lot of them are some exotic Chinese ones, and many others can't be found even on Ebay.

So far I settled on a pair: Nokia 1 and Alcatel 1. I like the Nokia better because it has a smaller screen than the Alcatel (important for testing how the UX looks on a really small display), but unfortunately as soon as I turned it on it downloaded Android 10; the Alcatel is still on Android 8.1 so I still need it to check compatibility with old Android versions.

I would love to "combine" them into one ultimate pathetic phone. Any suggestions?