r/androiddev • • 27d ago

Pragmatic Clean Architecture skill

0 Upvotes

Clean Architecture is about much more than 1:1 mappers, anemic domain models, and use cases.

That's why I created this agent skill specifically with Android and Kotlin in mind, applying DDD principles and practical Object-Oriented design wherever they make sense.

I'm currently testing it on a pet project, but I'd love for you to give it a try and share your feedback!

GH link


r/androiddev • • 28d ago

Open Source I made an open-source Android launcher that an AI coding agent customizes for you

Thumbnail
github.com
0 Upvotes

r/androiddev • • 29d ago

Open Source Built an Android app to simulate different network conditions on real devices

16 Upvotes

I was looking for a way to test Android apps under different network conditions, but most solutions I came across either changed the network settings for the entire device, were focused on emulators, or required setting up proxies.

So I built my own tool: App Throttler.

  • Set download and upload speed limits.
  • Simulate latency and jitter.
  • Introduce packet loss.
  • Apply network conditions to individual apps.
  • Change network profiles while the app is running.
  • Create different network scenarios.
  • Capture and export network traffic as PCAP files.

GitHub: https://github.com/RAN-GAN/app-throtler

It's still a work in progress, and there are some limitations I'm working on.


r/androiddev • • 29d ago

Haze 2.1: Shatterproof Glass

Thumbnail
chrisbanes.me
48 Upvotes

r/androiddev • • 28d ago

Question How can I emulate Android 2.3.7 on android studio

0 Upvotes

I want to emulate Android 2.3.7 on android studio but they do not have a option for phones that far back so is there any way I can do this?


r/androiddev • • 28d ago

Question How do you handle porting and maintaining native Android and iOS apps? I'm exploring a possible solution.

0 Upvotes

I’m not asking out of curiosity - I’m trying to understand if there’s a viable solution to a problem I’ve come across whilst working on a mobile app for a local start-up.

The scenario:

A company creates a native mobile application for one platform (say Android). At some point they’ll want to create another version for iOS (or vice-versa).

An option would be to bring in a separate team to develop and maintain the app. However, this can get quite costly, especially for a start-up and small dev team. Especially if the native app has a lot of features.

I’ve been thinking about creating an AI powered engine to help.

This would:

Identify which sections of code and business logic can be reused from an existing native app. Generate or modify the native specific sections whilst maintaining functionality and ensuring the native UI/UX is respected. Assist with the maintenance of both versions, with new features being added.

It would involve AI, but wouldn’t be entirely.

Before I spend any time developing this, I’d like to know how devs have overcome this.

If you’ve ever done this:

Have you ever had to port an existing native android application to iOS (or vice-versa)? What was the hardest part? What tools did you use? What was missing? What would a tool need to do to save you time and make you want to pay for it?

I’d love to hear about your experiences, even if you’ve tried and failed!

Thanks for sharing your experience!


r/androiddev • • 29d ago

Experience Exchange App Memory Usage Test

13 Upvotes

I tested today the app's memory usage. Never more than 8-12 MB, even after going through several levels. It should also run well on older devices, very satisfied 🙂

The stutters in the video are due to the PC, the app itself runs fine.


r/androiddev • • Nov 02 '26

Discussion Anyone else getting tired of constantly having to relearn Android development?

213 Upvotes

I’ve been developing Android apps since 2012, and sometimes I wonder how many times I’ve had to start over with this ecosystem.

Every 3–4 years, it feels like something major changes. Eclipse to Android Studio, Java to Kotlin, XML to Compose, different architecture patterns, libraries becoming obsolete, and Google constantly changing what’s recommended.

Don’t get me wrong, a lot of these changes have made Android development better. But after spending years mastering something, it can be frustrating to see it slowly become outdated.
What bothers me isn’t learning new things. I actually enjoy that part. It’s the constant feeling that you need to keep up with everything just to stay relevant.

Last year, I decided to shift my career more towards software architecture and technical leadership. I still enjoy coding, especially Android, but I wanted to spend more time designing systems, solving larger engineering problems, and making technical decisions rather than constantly chasing the next framework.

Sometimes I miss the old days when I could just sit down, build an app, and not worry too much about whether the recommended way of doing it would change in two years.

Curious if anyone else who’s been developing Android apps for 10+ years feels the same.

Has anyone here moved from Android development into architecture, backend, engineering leadership, or something completely different? Do you miss being a full-time Android developer, or are you happy you made the switch?


r/androiddev • • Nov 02 '26

Open Source System bar appearance API for Compose Multiplatform apps

Post image
24 Upvotes

I am building a LOT of iOS/Android apps with Compose lately, and it annoyed me how I had to style system bars on Android only and juggle with expect/actuals for this.

So I made my own API for setting the icon color of system bars for both Android and iOS.

Enjoy: https://github.com/composablehorizons/systembars


r/androiddev • • 29d ago

Question How to update to Play Billing 8.0+

2 Upvotes

I just saw that I'm in violation of the policy and have no idea how to update it. I thought I had updated it but I guess now. My app also doesn't use it as far as I know


r/androiddev • • Nov 02 '26

Open Source I made an Android Studio plugin that previews iconfont glyphs beside your code

Thumbnail
gallery
5 Upvotes

This is my first Android Studio plugin, and I'm pretty excited to share it here. It's called IconFontViewer.

I wrote it because I wanted to see the actual icon next to R.string.icon_home while reading Android code.

It renders the glyph in the editor gutter for Kotlin and Java references, XML layouts and strings.xml. Clicking it opens a searchable icon picker. Choosing another icon replaces the reference at that position.

It finds TTF files in the project and library dependencies, including AARs, JARs and nested archives. Fonts don't need to be in a directory named fonts. Under Tools → IconFontViewer, you can enable or disable fonts, add a TTF manually, or rescan the project.

It's free and open source (Apache 2.0). Supports Android Studio 2024.1 or newer; TTF files only.

Source: https://github.com/ultimateHandsomeBoy666/IconFontViewer Marketplace: https://plugins.jetbrains.com/plugin/31478-iconfontviewer


r/androiddev • • Nov 02 '26

Architecture discussion: Client-side JIT stream resolution and handling Media3 background network drops in Compose

2 Upvotes

Hey everyone,

I’ve been working on a serverless media architecture that bridges local storage with cloud streaming. Since I'm not using a dedicated REST API backend, it introduced some unique engineering hurdles with Media3 and Jetpack Compose. I wanted to share how I solved them and see how the community handles similar edge cases.

1. Handling Media3 Background Network Noise (Crashlytics Spam) Because the player operates in the background, the OS frequently drops network sockets to save battery, or the user hits a dead zone. This was flooding Firebase with non-fatal ExoPlaybackException errors (specifically java.io.EOFException from Mp4Extractor).

Instead of letting it crash, I built an interception engine inside the Player.Listener. It aggressively scans the stack trace to silently invalidate the cache and auto-recover without reporting to Crashlytics:

Kotlin

override fun onPlayerError(error: PlaybackException) {
    val errorString = error.stackTraceToString()
    val isRecoverable = error.errorCode == PlaybackException.ERROR_CODE_IO_NETWORK_CONNECTION_FAILED ||
                        errorString.contains("EOFException") || 
                        errorString.contains("UnknownHostException")

    if (isRecoverable) {
        // Silently invalidate cache and trigger auto-recovery logic
        attemptJitRetryAndRecovery() 
    } else {
        CrashTracker.recordException(error)
    }
}

How do you guys handle ExoPlayer background noise? Do you use a similar filter, or rely on Media3's default LoadErrorHandlingPolicy?

2. True Glassmorphism in Compose Achieving an Apple-style frosted glass look in Compose is notoriously tricky. Originally, I used a Surface with a translucent white alpha, but it looked muddy and text bled through.

I found that stripping out Surface (and its baked-in tonal elevation) in favor of a tightly wrapped Box with a Brush.linearGradient works infinitely better:

Kotlin

Box(
    modifier = Modifier
        .clip(RoundedCornerShape(32.dp))
        .background(
            Brush.linearGradient(
                colors = listOf(Color.White.copy(alpha = 0.22f), Color.White.copy(alpha = 0.08f))
            )
        )
        .border(1.dp, Color.White.copy(alpha = 0.25f), RoundedCornerShape(32.dp))
) { // Content }

Has anyone experimented with the Haze library for real-time background blurring instead of static gradients?

3. Client-Side JIT Resolution To keep it serverless, I built a custom JIT resolver. It intercepts track queries, resolves the direct audio stream on the client using Retrofit/Coroutines, and passes the URI to Media3 on the fly.

I'd love to hear your thoughts on this architecture, especially if you've dealt with Media3 session management! (I can share the repo link in the comments if anyone wants to see the full implementation).


r/androiddev • • Nov 02 '26

How do you organise unit tests for formula-heavy code?

3 Upvotes

I'm a student building a calculator-style Android app in Kotlin, where most of the logic is pure functions: a few inputs, some unit conversions, one numeric result, often with clamps or caps (for example "use the lower of X or a maximum value").

Right now each formula has a test file with a handful of worked examples taken from the original papers, plus a few edge cases (zero, very large values, unit switches). It works, but it's getting repetitive with dozens of formulas.

For people who've tested this kind of code:
- Do you use parameterised tests (JUnit 5 / kotest data-driven tests) or keep plain JUnit 4 with tables of cases?
- Is property-based testing worth it here, e.g. "dose never exceeds the cap" or "result increases with weight"?
- How do you handle floating-point tolerance and rounding consistently across many calculators?

Any patterns or libraries you'd recommend would help.


r/androiddev • • Nov 02 '26

Open Source Update on SmolChat - OpenAI server, Support for Global Chat Settings, Direct Model Downloads and more

5 Upvotes

Hi! I'm Shubham, creator of SmolChat.

I would like to share some exciting updates on my project SmolChat, an Android app that let's you run GGUF models on-device, locally. The updates are present in the latest v17 release:

  • SmolChat now supports an OpenAI-compatible HTTP server running over a foreground service that keeps the port alive even when the phone is locked. Check the video to see how it works.
  • Support for global chat settings, which override the default chat settings (min-p, top-k, temperature etc.) for all newly created chats. This reduces the hassle of configuring each new chat with the options of your choice.
  • Adding a copy button for code snippets rendered within the chat.
  • Sync with upstream llama.cpp (till this commit)
  • Fix the logic that measures tokens/sec for a LLM generated message. The time shown previously was also including prompt processing (pp) time. The new logic now only considered the token generation rate (tg).
  • Models are downloaded directly by the app, instead of using the Android system's download service.

GitHub: https://github.com/shubham0204/SmolChat-Android

Play Store (the latest version is still in review): https://play.google.com/store/apps/details?id=io.shubham0204.smollmandroid&hl=en_IN

Previous threads on SmolChat on r/LocalLLaMa:

Cross posted from r/LocalLLaMa


r/androiddev • • Nov 01 '26

Can you preview compose UI with a lightweight viewer?

Thumbnail reddit.com
4 Upvotes

r/androiddev • • Nov 01 '26

Question Is LiveData still worth learning in 2026, or is StateFlow the default now?

10 Upvotes

I’m learning Android with Kotlin and Compose. I found a few old threads (4-6 years ago) debating StateFlow vs LiveData but a lot has changed since then. My understanding is that new Compose projects mostly use StateFlow and LiveData shows up in older View-based apps. Is that still the case today? And is it worth a beginner learning LiveData at all or just knowing it exists? and I want to know what you use now.


r/androiddev • • Nov 01 '26

Open Source Showcase: TMPlayer, Kotlin + TDLib + Compose on TV, phone and desktop

Post image
10 Upvotes

A free, open source player for the videos in your own Telegram chats. The hard parts were low-end TV sticks, playback stutter and sharing UI across form factors. Happy to go into any of it. github.com/dracu-lah/TMPlayer


r/androiddev • • Nov 01 '26

Discussion Running Demucs stem separation on an Android phone in the background – what it took (ONNX Runtime, 3.9 s chunks, under 2 GB RAM)

Post image
3 Upvotes

I added music source separation (drums / bass / vocals / other) to my open-source DJ app and wanted to share what worked:

• Export: htdemucs to ONNX with the STFT/iSTFT kept out of the model, done in Kotlin instead. ONNX's STFT ops were the main export pain.

• Memory: the full-length model got killed by the low-memory killer. 3.9 s chunks, setCPUArenaAllocator(false) and setMemoryPatternOptimization(false) kept it stable.

• NNAPI made it worse on my device; 4 CPU threads ran at about 2× real time on a mid-range Moto G64.

• Scheduling: separate only the windows the next mix needs, ordered by deadline, and fall back to EQ when a window isn't ready, so playback never waits.

• Alignment: cross-correlation between the live deck and the stem window, coarse then fine, to line the stems up within a few ms.

Code is GPL-3.0 (link in the comments). Happy to answer questions on any of it.


r/androiddev • • Nov 01 '26

Google Play Support is auto-closing backend profile mismatch tickets without reading them. Has anyone successfully forced a manual Payments Profile re-link?

Post image
5 Upvotes

I’m caught in a Google Play Console verification deadlock, and frontline support is actively making it worse. Since JULY.

My developer account got flagged with the standard verification restriction. When I tried to fix it, I hit the unhelpful "Appeal reply sent" banner, which blocked all input.

I diagnosed the root cause: My Play Developer account was mistakenly mapped to my Individual Google Payments Profile instead of my LLC's verified Organization Payments Profile, creating a conflict with my corporate D-U-N-S.

I escalated this directly to Support, provided the exact Org Profile ID they needed to re-map it to, along with my entity paperwork.

The response? An agent literally named "Maeonnaise" closed the ticket today with a canned script saying they couldn't verify my ID and "no additional actions required from my end," completely ignoring the explicit request for a Payments Profile re-link.

Has anyone found a backdoor or a specific escalation phrase to get a human engineer to actually re-map a Play Console account to a different Payments Profile? I can't finish verification until this backend link is fixed. At this point, getting brushed off by a sentient jar of mayonnaise is just insulting.

I really appreciate your help, and I'd be glad to buy you a digital coffee for a solution!

Thank you,

C


r/androiddev • • Nov 01 '26

Question Testing App UI flow

0 Upvotes

How do you test app screens navigation flow?

Any tool or solution to simulate it that I should know?

I'm stuck with Android Studio as it crashes all the time.

Can anyone advise to a non-developer on this part?

Thank you


r/androiddev • • Oct 30 '26

Discussion Google just released AppState — is it actually better than SharedViewModel for shared state?

85 Upvotes

Google released AppState and it looks like a cleaner way to handle shared state than passing a SharedViewModel around. I never really liked SharedViewModel, felt like one screen ends up owning data other screens depend on it.

From what I get so far: StateStore is a shared observable value, MutableStateStore is the writable one, AppState owns the lifecycle, and transform lets you derive state automatically instead of syncing stuff by hand.

Curious what people think of the API so far.

Docs: https://developer.android.com/topic/libraries/architecture/appstate

Video: https://youtu.be/69QYEXymfVo

Anyone planning to try it out?


r/androiddev • • Oct 31 '26

How to keep wireless debugging on 24/7 even after restarts?

6 Upvotes

If my phone restarts, I have to 1. connect it to a wifi network (I'm almost never on or near wifi), 2. go into settings and turn on wireless debugging 3. re-pair all my dev machines to its new port

How can I make this less painful?


r/androiddev • • Oct 31 '26

Question OutlinedTextField squeezed to one character wide inside a Row: what's your go-to fix?

3 Upvotes

I'm building a small calculator-style app in Jetpack Compose. Each row has a label, a numeric OutlinedTextField and a unit dropdown. On narrower phones the text field collapsed to about one character wide, because the label and dropdown took their full intrinsic width first.

Giving the field Modifier.weight(1f) and the label a fixed or weighted width fixed most of it, but I'm not sure that's the cleanest pattern, especially with large font scaling turned on.

How do you usually handle form rows like this in Compose? Do you switch to a stacked layout below a certain width, use FlowRow, or something else?


r/androiddev • • Oct 31 '26

Building a DevTools protocol for inspecting Jetpack Compose and Android Views

4 Upvotes

I've been building Agent-DDP (Device DevTools Protocol), an open-source DevTools protocol that gives AI coding agents deep visibility into native iOS and Android applications.

The inspiration is the Chrome DevTools Protocol (CDP): browser agents can inspect the DOM, styles, rendering and runtime behavior. Native mobile agents have traditionally had much more limited visibility, often relying on screenshots and accessibility trees.

Agent-DDP aims to close that gap.

It instruments the app in Debug builds, allowing agents to inspect and interact with the application through its native rendering and runtime systems.

Some of what it can do:

  • Deep UI inspection: Inspect native elements, rendering layers, fills, borders, corner radii, opacity, clipping, text styling, geometry and occlusion.
  • Frame-by-frame analysis: Record property changes over time, inspect animation tracks, detect transient states and analyze timing and easing without guessing from videos or screenshots.
  • Visual and behavioral validation: Detect covered content, corner clipping, jank, animations that never settle, accessibility issues and touch targets that cannot actually be reached.
  • Cross-platform comparison: Compare iOS and Android layouts structurally and visually, including pixel comparisons against screenshots and saved baselines.
  • Runtime inspection: Access app state, events, logs, network requests, preferences, storage, memory usage, performance profiles and crash reports.
  • App interaction: Perform real taps, swipes, gestures and text input, control app time, mock or intercept network requests, and trigger actions exposed by the app.
  • Debugging: Inspect breakpoints, call stacks and local variables using the platform debuggers.

It also includes a 15-minute runtime history that records UI changes, frames, interactions and screen transitions, making it possible to investigate issues that happened before an agent started looking.

The architecture is designed for coding agents: a native instrumentation library, a CLI, structured output and an MCP server. It works with Claude Code, Codex, Cursor and other agents that can run CLI commands or connect through MCP.

Supported frameworks:

  • iOS: SwiftUI and UIKit.
  • Android: Jetpack Compose and Android Views.

The instrumentation is Debug-only and does not ship in Release builds.

Install:

npm i -g agent-ddp

The project is open source under the MIT license.

I'd appreciate feedback, especially from people working on native mobile development, UI automation, developer tooling or coding-agent infrastructure.