r/androiddev • • 56m ago

Discussion How do Android apps typically establish and maintain connections with desktop companion clients over Wi-Fi and Bluetooth?

1 Upvotes

I've been exploring Android-to-desktop interoperability while working on a Linux desktop client for Motorola Smart Connect.

One interesting aspect of this work is that the existing Android companion app can communicate with a desktop client without requiring a modified APK or additional software installed on the phone.

I'm particularly interested in the Android-side architecture behind these integrations.

A few technical questions I'd like to understand better:

  1. How do Android companion apps typically discover and authenticate desktop clients over local networks?
  2. What are the common approaches for maintaining reliable connections when switching between Wi-Fi and Bluetooth?
  3. How should Android applications handle connection interruptions, background restrictions and process lifecycle changes?
  4. What architectural considerations matter when implementing low-latency screen streaming and remote input?

I've been looking into these problems from the desktop-client side, but I'd like to understand the Android-native design patterns and limitations more deeply.

I'd appreciate technically grounded discussion, particularly from developers who have worked on Android companion apps or device interoperability.


r/androiddev • • 2h ago

Best way to learn Android development with a limited amount of time?

2 Upvotes

Hey everyone,

A little bit of background about me: I'm a high school student, and I've spent around a year programming in C and about six months messing around with assembly as a hobby. So I have some programming experience, but pretty much no experience with OOP or higher-level languages.

I'm currently working on a project, and I need to build an Android app on my own within a month, with the help of AI.

I found a pretty good 61-hour freeCodeCamp course covering Kotlin, SQL, and Android development, but it seems a bit too long given my time constraints. I also started Google's official Android Basics with Compose course, but it felt like it was glossing over some topics rather than explaining them in enough depth.

Even though I'll be using AI to help me write code, I want to actually understand what's going on under the hood, stay in control of my codebase, and be able to maintain the application myself. I don't want to end up blindly accepting AI-generated code without understanding it.

I'm looking for a resource that teaches me the fundamentals of Android development without spending too much time on things I won't necessarily need right now.

What courses or resources would you recommend for someone in my situation?


r/androiddev • • 3h ago

News Kotlin 2.5.0 Released

Thumbnail
blog.jetbrains.com
42 Upvotes

r/androiddev • • 5h ago

I made MorphBar, an open-source Compose bottom navigation bar with 64 animated styles (glass, neon, neumorphic, notch, radial FAB)

Post image
2 Upvotes

Hi r/androiddev,

I kept rebuilding custom bottom bars for every app, so I turned them into a library: MorphBar.

GitHub: https://github.com/islam-engineer/MorphBar

What it does:

- 64 ready-made styles in 12 families (pill, curved notch, glass, neon, outline, neumorphic, wave, hexagon, diamond, radial, glow, minimal)

- Each bar = shape × material × indicator, so you can mix your own or write a custom one (they're small interfaces)

- Center FAB, a notch that follows the selected tab, and a radial "fan" FAB menu

- "Island" modes where the bar morphs into a media player, voice waveform or AI prompt

- Text style, icon size, per-tab colors, drawable/Painter icons, RTL

- The slide animation is read in the draw phase, so it doesn't recompose the bar every frame

Install (JitPack):

implementation("com.github.islam-engineer.MorphBar:morphbar-presets:0.1.0")

It's Android-only for now, but the core is pure Compose so Compose Multiplatform is on the roadmap.

I'd really like feedback: which styles you'd actually ship, what's missing (badges and haptics are next), and anything that feels off in the API.


r/androiddev • • 5h ago

Open Source I built and published a Jetpack Compose library for rendering streaming Markdown from Kotlin Flows

Thumbnail
gallery
3 Upvotes

I've been working on a problem that comes up when building AI-powered chat interfaces on Android: rendering Markdown while the response is still streaming .

https://github.com/valentineRutto/StreamMarkdownCompose

AI responses don't arrive as complete Markdown documents. You might receive half a code fence, an unfinished bold expression, or a table that hasn't been fully generated yet.

Rendering each chunk as plain text exposes Markdown syntax to the user. Waiting until the entire response is complete makes the experience feel less responsive.

I built StreamMarkdownCompose to address this.

It's a native Jetpack Compose library that renders Markdown progressively from a Flow<String>.

The attached GIFs demonstrate the difference using the same AI response:

  • Without the library: Markdown symbols like **, #, and backticks are displayed as raw text.
  • With the library: Headings, bold text, lists, and code blocks render as the response streams in.

Current features

  • Streaming Markdown rendering from Kotlin Flow<String>.
  • Handles incomplete Markdown syntax, including unfinished code fences.
  • Native Jetpack Compose implementation — no WebView.
  • Tables and task lists.
  • Syntax-highlighted code blocks with a copy button.
  • HTML sanitization and URL allow-listing.

Links

It's now published on Maven Central.

I'd appreciate feedback from Android developers, especially those building LLM-powered applications.

A few things I'm curious about:

  • What Markdown features are essential in an AI chat UI?
  • How are you currently handling Markdown rendering during streaming?
  • What would you want to see before adopting a library like this?

Happy to hear suggestions, issues, and contributions.


r/androiddev • • 6h ago

Open Source Building an open-source scene-referred RAW camera pipeline on Android (Camera2, NDK/C++, GPU shaders)

Post image
3 Upvotes

I’ve been working on RawLens, an open-source (GPLv3) native Android camera built to run a desktop-style scene-referred RAW processing pipeline directly on-device. I wanted to share the repository and some of the Android-specific engineering challenges behind it.

Architecture & Native Pipeline

  • Camera2 & Sensor Data: Captures full-resolution RAW_SENSOR streams via Camera2, handling per-device DNG calibration overrides and real-time sensor-level exposure metering (ETTR, RAW clipping zebras, false color) directly off preview/capture buffers without stalling the viewfinder.
  • Native C++ / GPU Processing: Offloads heavy demosaicing (AMaZE, RCD), darktable’s inpaint-opposed highlight reconstruction, and AgX tone mapping to native code/shaders. Output supports DNG (with optional lossless JPEG XL compression), JPEG XL, and Ultra HDR JPEG.
  • Multi-Frame Burst & Alignment: Implements Lucas–Kanade Reloaded (Lecouat et al., 2021) multi-frame super-resolution alongside Wronski et al. (2019) and Hasinoff et al. (2016) HDR+ burst merging in native code, including offline merging for saved exposure brackets.
  • RAW Video: Streams lossless RAW frames into a .craw container compatible with DaVinci Resolve alongside standard encoded profiles (S-Log3/S-Gamut3.Cine, HLG, custom LUTs).

Manufacturer Camera2 implementations vary wildly from which physical lenses expose RAW_SENSOR capabilities to inconsistent black-level/color-matrix metadata and buffer throughput limits across SoCs. On the GPU side, driver quirks across mobile GPUs (precision handling, compute/shader compilation differences, and memory/bandwidth ceilings when chaining multi-frame alignment, demosaicing, and AgX rendering) add another layer of device-specific tuning.

Source Code & Docs:https://github.com/matthew777777/RawLens

For anyone else working closely with Camera2, the NDK, and mobile GPUs: how are you handling device-specific RAW calibration quirks, multi-lens LogicalCamera switching, and GPU driver/precision differences across OEMs?


r/androiddev • • 6h ago

Experience Exchange Building an idle clicker UI in Kotlin & Jetpack Compose + Play Games & AdMob lessons

1 Upvotes

I recently shipped my first native Android game, Bureaucratie95: Idle Clicker, built with Kotlin and Jetpack Compose, integrating Google Play Games leaderboards and AdMob rewarded ads.

Since idle/clicker games rely heavily on frequent state updates, animations, and responsive UI without bogging down recompositions, I wanted to share a few takeaways and ask how others structure theirs:

  • State & recomposition boundaries: keeping fast-changing counters/timers isolated so heavier screens or upgrade lists don't recompose unnecessarily.
  • Google Play Games integration: handling sign-in state and leaderboard updates cleanly without blocking gameplay or cluttering the UI flow.
  • AdMob rewarded ads: making sure ad loading/fallback states stay predictable and don't feel intrusive in a small indie build.

For those who have shipped games or high-frequency interactive apps with Compose, what patterns or pitfalls tripped you up the most around state management or Play Services/AdMob?


r/androiddev • • 7h ago

Question ADB problems in Android Studio Rabbit?

1 Upvotes

Hello colleagues, is anybody experiencing adb/usb connection problems using the latest Android Studio build?

I had an Android Studio version (quail) and it worked fine, but since I updated the AS app the connection goes crazy (adb timeout, sometimes not even connecting at all, stuck in "loading devices").

My adb version is the latest 37.0.3 and latest sdk version also 37.

Edit: updated macOS and it works perfectly fine again. sorry for the post.


r/androiddev • • 8h ago

Discussion Agents keep bumping Gradle and AGP versions in unrelated PRs

10 Upvotes

Our Android app has a fairly fragile build, about 30 modules, a couple of old annotation processors we haven't migrated yet. Since agents started writing most of our PRs, build config changes keep sneaking in.

In the last month: 4 PRs that were supposed to be UI changes also bumped a library version, one bumped the Android Gradle Plugin, and one changed the Kotlin JVM target "to fix a warning". Each one built fine locally on the author's machine. Two of them broke our release build on CI, one only on the minified variant.

The agent's reasoning is always the same. It hits a build warning or a deprecation, fixes it on the way, and the PR description mentions it in one line at the bottom.

coderabbit flags the version changes in review, which is how we started noticing the pattern at all. But whether a bump is safe for our build is something only the two people who understand our Gradle setup can judge.

What we're trying:

- CODEOWNERS on every build.gradle.kts and the version catalog
- a rule in our agent instructions: no version or build config changes unless the ticket asks for it
- Renovate for all dependency bumps, so they come in their own PRs

How are other Android teams keeping build config changes out of feature PRs?


r/androiddev • • 15h ago

Question Is there a way to modify Samsung's SystemUI without root?

0 Upvotes

Hello everyone,

Basically, I have been working on something on my Galaxy Z Fold device running One UI 9.

Basically, I want to bring back the classic TouchWiz colors and incoming call animations while keeping the modern One UI graphics and native functionality.

I've already modified and successfully rebuilt SystemUI.apk and InCallUI.apk, but I'm facing issues with Samsung's signature verification and system permissions.

I've tried Shizuku, ADB, overlays and Theme Park, but I want this to be native, not an overlay.

Does anyone know how to get the proper authorization, permissions or signing certificate from Samsung? Is there an official developer program or another way to achieve this without root, unlocking the bootloader or tripping Knox?

I've already contacted Samsung regarding Galaxy Themes Studio access and I'm waiting for their response.

I'm not looking for leaked signing keys or anything that would compromise my phone's security.

Has anyone done something similar or knows how to make this work?

Any help would be appreciated.

Thanks in advance


r/androiddev • • 17h ago

Question Any courses (free or paid) or other resources to learn Claude Code for Android or KMP?

1 Upvotes

Any courses (free or paid) or other resources to learn Claude Code for Android or KMP? i'm not looking for beginner stuff, i'm using it in my company but in a basic way, i need to learn advanced stuff preferably applied to Android or KMP, if not any course/resource on any other stack (front-end, backend etc) will be welcome.


r/androiddev • • 18h ago

ZoomSlider: a Jetpack Compose slider that magnifies the ticks under your finger

46 Upvotes

I rebuilt this zoom-slider interaction as a Jetpack Compose library, inspired by the work of u/kshvbgde.

Press the pill and it opens into a bubble with the full value, while the ticks under your finger spread apart so each step is easy to land on.

Dark/light styles, custom labels, haptics, TalkBack and animation-off support.

Android 7.0+ (API 24), MIT.

Source : https://repgem.com/zoom-slider-android

Would love your feedback!


r/androiddev • • 23h ago

Experience Exchange "Interview take-home task" zip had git hooks that run malware when you checkout a branch or commit. Got this today

133 Upvotes

Got suspicious, so instead of opening the zip on my laptop I gave it to Claude to analyse. Claude unzipped it in its cloud sandbox and read the files without running anything. It spotted two non-default git hooks in .git/hooks/ (post-checkout and pre-commit) that curl a script from a remote server and pipe it into bash or cmd.exe. It also found the trap: the task said to check out the problems branch and commit as you go, which would have fired both hooks. The actual app code was clean, just bait. It took a couple of minutes, and nothing touched my machine.

LinkedIn of person who reached out to me :- https://www.linkedin.com/in/julen-sanchez-santana-368408440/
Mail of Guy who took the interview :- michael@leadmichael.tech

(Edited with AI)


r/androiddev • • 1d ago

Tips and Information I get paranoid with strangers beta testing my app because I fear they will steal it.

0 Upvotes

So I need testers and I see multiple groups where people test each others app which is amazing. How do I protect myself and my app? This is my business and it does scare me because I fear someone stealing idea and monetizing from it.


r/androiddev • • 1d ago

Someone copied my app

63 Upvotes

I made InstaDownload, an open-source Instagram reel/post downloader for Android (GPL-3.0): https://github.com/Orang-Studio/InstaDownload

A few days ago I found a copy on Google Play: org.crazydevelopers.instadownload. It's genuinely the same app, with the same UI, the same settings and the same screens. They changed the tagline, replaced my "Open Source on GitHub" link with "Developed by CrazyDevelopers", and reset the version to 1.0.0.3. There's no source code, and the license and copyright notices aren't there.

They didn't copy some old version either. I'd understand if they stole before relicensing from MIT, but their build has code I added in October 2026, which is months after I moved the project from MIT to GPL-3.0 on 31 July. So this is a straightforward GPL violation.

What I've done so far:

- Emailed the developer asking them to take it down or comply with the GPL

- Filed a copyright complaint with Google Play. They asked for side-by-side screenshots and then for proof I own the code, and I've sent both, yet they're doing nothing about it.

The worst thing is that it ranks higher in SEO than mine!

Has anyone been through a Play takedown for a GPL violation? How long did it take? And does Google actually do anything for it?


r/androiddev • • 1d ago

Apps automation tool

0 Upvotes

Hey all, I've been working on an android test automation tool for the past year and I finally released it. Started as a hobby project, but results turned out quite nice. And its open source.

I tested it a lot on various apps and some devices/emulators, but that’s still probably nothing compared to the numbers used on a daily basis in the industry. Anyway, maybe someone will find usage in that tool or find a bug or suggest some feature. I would be very grateful.

What you can use it for

- UI flows in Jetpack Compose and View-based apps

- Mocking your API from the test or calling your backend to set up data or authorize

- Permission dialogs, crashes, notifications and real FCM pushes, deep links, app updates

- A trace for every failed test (steps, screenshots, network) and a live inspector that suggests locators and let you inspect Network

What I focused on

- No sleeps and no flaky waits: a small daemon on the device streams every UI change to the test, so actions wait until an element is visible, enabled and no longer moving, and assertions pass the moment the UI matches.

- One connection per run instead of a server round trip per action

Limitations

- Tests are TypeScript, not Kotlin

- It sees what the accessibility tree sees: Compose and Views are well tested, but WebView, Flutter and games aren't yet

- Early 0.x, so the API may still change

For more info visit docs: https://tetrip.dev


r/androiddev • • 1d ago

Why doesn't this work

2 Upvotes

I have a simple composable function I'm trying to make, basically just defining how I want every row to look in my app. Here's the function currently:

@Composable
fun ListRow(
    modifier: Modifier = Modifier,
    horizontalArrangement: Arrangement.Horizontal = Arrangement.Start,
    content: @Composable () -> Unit)
{
    Row(
        horizontalArrangement = horizontalArrangement,
        modifier = modifier
            .fillMaxWidth()
            .padding(horizontal = 7.dp, vertical = 4.dp)
    ) {
        content()
    }
}

In some rare cases I want to be able to change the padding, like this:

ListRow(modifier = Modifier.padding(horizontal = x.dp, vertical = x.dp)) {
    // content
}

Of course though, the padding specified there gets overwritten by this:

modifier = modifier
    .fillMaxWidth()
    .padding(horizontal = 7.dp, vertical = 4.dp)

My solution was to define the modifier in the function parameter like this:

fun ListRow(
    modifier: Modifier = Modifier
        .padding(horizontal = 7.dp, vertical = 4.dp),
    horizontalArrangement: Arrangement.Horizontal = Arrangement.Start,
    content:  () -> Unit)
{
    Row(
        horizontalArrangement = horizontalArrangement,
        modifier = modifier
            .fillMaxWidth()
    ) {
        content()
    }
}

My assumption is that this would set the default padding to horizontal = 7.dp, vertical = 4.dp unless otherwise defined like the example above.

However, this gives me a warning: Optional modifier should have a default value of Modifier

I ignored that and tested the app, but now suddenly the default padding for ListRow is gone, the padding is always 0.dp unless otherwise specified.

I really don't understand why this doesn't work, and I'm curious what the proper way to achieve this behaviour is.

I know I could just define the padding for every instance of ListRow, but the whole point of even having this function is to cut down on extra code in my ui, and to allow me to easily and universally change the design of it if I want to.

One solution I thought of is to define the function like this:

@Composable
fun ListRow(
    modifier: Modifier = Modifier,
    paddingHorizontal: Dp = 7.dp,
    paddingVertical: Dp = 4.dp,
    horizontalArrangement: Arrangement.Horizontal = Arrangement.Start,
    content: @Composable () -> Unit)
{
    Row(
        horizontalArrangement = horizontalArrangement,
        modifier = modifier
            .fillMaxWidth()
            .padding(
                horizontal = paddingHorizontal,
                vertical = paddingVertical,
            )
    ) {
        content()
    }
}

But that just doesn't feel as clean to me. The default way to change padding is through the Modifier, and I don't really wanna change that.


r/androiddev • • 1d ago

Question How are you handling large video uploads in your app?

6 Upvotes

I'm working on an app that needs to upload fairly large videos (100-500mb) reliably, even on poor network connections.

My initial thought was to just use WorkManager with multipart uploads to S3. I've looked at Amplify and Mux as well but ideally want something that works with any backend.

For those who have implemented something similar, did you build it yourself or use an existing library/sdk? How much of a pain has it been to maintain and debug upload failures in production?


r/androiddev • • 2d ago

Question How are you running multiple coding agents in parallel with devices?

1 Upvotes

I've been using Codex for Android development and am starting to experiment with running multiple agents on separate worktrees.

What's your current setup for this? Especially when agents need to build and actually run the app.


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

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

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

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

10 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 • • 2d 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.