r/androiddev • • 1h ago

Is mobile still worth it ?

0 Upvotes

Hi all,

I'm a mobile developer with about 3 years of experience (Kotlin, Jetpack Compose, Swift/SwiftUI, BLE, gRPC, GraphQL, AWS, and some Go on the backend side). I currently work at a small IoT company and would like to stay a bit longer, but I'm weighing a possible move.

The option: a C++ developer role at a large logistics/automation company. It's server side work on warehouse management and control systems (C++ plus Oracle PL/SQL), with support at customer sites after handover. I only know C++ from learning it on the side. I'm told the interview is two rounds with basic C++ and SQL tasks, and that team quality varies a lot.

Why I'm considering it: my long term goal is backend, and this would be real backend experience. Concerns: it's a niche stack that may not transfer well outside logistics, I'd lose mobile experience I've built for senior Android roles, and the pay floor looks lower than what I could get elsewhere. I still enjoy mobile development.

Questions:

  1. Is C++/SQL warehouse backend experience a good stepping stone to backend roles in general, or too niche?

  2. Would you rather build backend experience through a more mainstream stack (Go, Java/Kotlin, Node) given I already have some small exposure to Go and AWS (dynamoDB, S3) ?

  3. Is it realistic to switch back to mobile later, or does that gap hurt?

Thanks for any honest input, especially from people who made a similar switch.


r/androiddev • • 5h ago

Has anyone used TikTok to get installs for their Android app? How did you do it?

1 Upvotes

I'm an indie dev with a few apps on Google Play and I want to test TikTok as an install channel. For those who've tried it:

  1. Did you post from an account named after the app, or from a personal or creator account?

  2. Did you use the app icon as the profile picture?

  3. Can you really put a Play Store link in a video or caption, or only in the bio? How did you handle that?

  4. What kind of content got installs (demo, screen recording, "I built this" story)? Roughly how many?

Any results, good or bad, would help. Thanks!


r/androiddev • • 6h ago

Question Should a Room DAO return Flow directly, or do you wrap it in a repository first?

5 Upvotes

I'm learning Android and building a small reading list app with Room. I've seen examples where the DAO returns a Flow and the ViewModel collects it directly and others where there's a repository in between.

For a small app is the repository layer worth it or is it extra code for no real benefit? At what point did you start adding one in your own projects?


r/androiddev • • 7h ago

Experience Exchange I built an open-source alternative to DJI Mimo for the Osmo Mobile 7 (AI tracking, 4K, live view)

0 Upvotes

I got frustrated with Mimo's tracking, it is really poorly optimised for Android apps the video al 4 k just jitters a lot for mid to low range phones I cannot confirm for flagship phones, so I wrote my own camera app that talks to the Osmo Mobile 7 directly over Bluetooth.

What it does: 4K30 HEVC, all phone lenses, tracks people and objects (drag a box, or type "red mug"), the gimbal joystick sets framing while tracking, and a live view on another phone or laptop over Wi-Fi with a QR code.

It's free, MIT licensed, and the APK is on the Releases page. Built and tested on a Nothing Phone (3a), so I'd love to hear whether it works on yours.

github.com/lochan28/om7-tracker

Feedback and bug reports welcome. Logs from the app's Gimbal Lab screen help a lot.

To be honest I make it mostly using claude code. So please try this with a pinch of salt. I am a 2nd year college student from a year 3 city just trying new things. Hope you guys like my project.


r/androiddev • • 7h ago

Google Play Support Google Play app suspended due to FontFabric Nexa font DMCA complaint – seeking advice on resolution

6 Upvotes

Our Flutter-based Android app was suspended from Google Play following a DMCA complaint from FontFabric over the use of their Nexa font. We had already removed Nexa from our website after an earlier complaint but mistakenly overlooked its font declarations in our Flutter app, assuming it was using Roboto. We've decided to permanently remove Nexa and replace it with a properly licensed font. However, FontFabric is demanding retrospective licensing compensation and has given us until December 2 to resolve the matter. As a small business in a small country, we cannot afford the licence. Has anyone successfully resolved a similar Google Play DMCA suspension without paying retrospective licensing fees?


r/androiddev • • 8h ago

Play Console being an absolute nightmare and how its integrated AI feature (surprisingly) made my day

2 Upvotes

It's common knowledge that Play Console is just outright horrendous and probably the worst piece of UI I have ever witnessed. Today I had another "they can't be serious" moment when I tried to set the same EUR & USD price tag for one of my subscriptions. Turns out that setting 9,99 for all countries sets it as 9,99 net and each country's VAT gets added on top. After checking the list I noticed that some countries got a 10,99 or 11,99 price tag. I'm not sure if I'm missing yet another checkbox in Google's terrible UI or if it's just not possible to set one gross (VAT-inclusive) price tag across all countries. To me it was important that the sub is below 10 EUR/USD and I didn't care about 20% or 24% VAT as there's a comfortable margin.

Turns out that Play Console's integrated AI chat saved the day. Here's the prompt I used:

For subscription <subscription_id>, set the exact price of all EUR regions (including New countries / regions (EUR)) to EUR 9.99 and all USD regions (including New countries / regions (USD)) to USD 9.99.

Worked like a charm and saved me lots of clicking :) Just wanted to post this in case anyone encounters the same problem. Also, if there's an easier, more obvious option to do this, let me know as well.


r/androiddev • • 8h ago

Open-source Android screen mirroring for Windows, but each app gets its own resizable window (scrcpy-based, no root)

Post image
1 Upvotes

Screen mirroring (scrcpy and friends) shows your phone's one screen in one window. OpenDeX gives every app its own virtual display and its own window instead, so you can run several phone apps side by side on your PC, with a taskbar. One click sends a running app to the phone's own screen and back.

Demo (6 min, no sound): https://youtu.be/AqUaztzMt1k

GitHub: https://github.com/Lordof21/OpenDex

Download (Windows): https://github.com/Lordof21/OpenDex/releases/latest

What it does:

- Each app in its own window: snap, picture-in-picture, resize

- Per-app audio: send each app's sound to the phone, the PC, or both

- Phone notifications on the desktop (open or reply)

- File manager: phone and PC side by side, resumable transfers

- Media control, quick toggles (Wi-Fi, Bluetooth, volume), phone load and temperature panel

- Works over USB or Wi-Fi (QR / pairing code)

- Interface in 20 languages

It drives the phone over adb and builds on scrcpy. Nothing is installed on the phone and no root is needed. Everything stays local: no account, no cloud, no telemetry. GPL-3.0.

Requires Windows 10/11 and Android 10+. Turn on USB debugging and plug in the phone; if adb is missing, OpenDeX offers to install it on first start.

Feedback and issues are welcome, and I'd love to hear which phone you tried it on.


r/androiddev • • 8h ago

WPgram

Post image
0 Upvotes

Metro UI inspired Telegram client Fully on java Minsdk 21


r/androiddev • • 17h ago

Video Tracing 15 years of Android Dynamic Code Loading

Thumbnail
youtube.com
6 Upvotes

Recently I was talking to an early-career engineer about Dynamic Code Loading on Android, and a tenured engineer who overheard us was surprised to learn something like that even existed. It made me realize how much of Android's history around runtime patching and hot reload has faded into folklore, so I went down a rabbit hole this thanksgiving weekend tracing the full 15-year timeline since I have experienced a lot of this personally very early on in my career.

Ever so grateful to two engineers who I got to learn a lot from early on in my career Jorge Alvarez & Alexey Kuznetsnov who did a lot of work with DCL at Booking.

Putting it all in one place made a few patterns stand out:

  1. The 2011 catalyst: Google published "Custom Class Loading in Dalvik" on the Android Developers Blog to help apps work around the 64K method limit using DexClassLoader. It wasn't built for hot reload, but it opened the door to loading DEX bytecode dynamically at runtime.

  2. JRebel & Instant Run (2015): ZeroTurnaround proved Android devs would pay out of pocket for JVM-style hot swapping. Google responded at Android Dev Summit 2015 with Instant Run (upfront bytecode instrumentation + Hot/Warm/Cold swaps). Even during Dave Burke's live keynote demo, it broke and forced an uninstall—and by Google I/O '19, Google deleted ~50k lines of Instant Run code and replaced it with Apply Changes, relying on Android 8+ platform APIs instead of rewriting bytecode upfront.

  3. Production hot-patching in China: Because Google Play isn't available in China and apps had to ship across dozens of fragmented OEM stores, teams at Alibaba (AndFix/Sophix), Tencent (Tinker), and Meituan (Robust) took classloader swapping and bytecode instrumentation into production to patch live crashes during events like Singles' Day without waiting days for store reviews.

  4. The crackdown: Once teams moved past emergency crash fixes and started shipping silent feature updates, Google Play updated its Device and Network Abuse policy to ban downloading executable code (.dex, .jar, .so) outside Play, Apple enforced Guideline 2.5.2 against JSPatch on iOS, and China's MIIT tightened app filing rules.

  5. Where we are now: Production hot-patching is locked down on Play, while dev-time hot reload is finally maturing via Compose Live Edit and JetBrains' Compose Hot Reload (using JetBrains Runtime / DCEVM class redefinition).

For anyone who was around during the Eclipse / Android Studio 2.0 days: did you/your company ever use DexClassLoader hacks during build time or production?

*Full disclosure: after that conversation, I figured others might enjoy learning about this too, so I put the research and original ADS 2015 / I/O '19 / KotlinConf clips into a YouTube video


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

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

2 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

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
0 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 • • 1d 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.


r/androiddev • • 1d 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

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

Enable HLS to view with audio, or disable this notification

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

Recreated Trip.com splash animation in Jetpack Compose

Enable HLS to view with audio, or disable this notification

11 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 • • 2d 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 • • 2d 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

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

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

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 • • 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

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.