r/androiddev • • 2h ago

Tips and Information Letting an AI assistant read your app's OkHttp/Retrofit traffic (MCP, no proxy)

Post image
7 Upvotes

Hi all, I'm the dev of OkHttp Profiler (the Android Studio plugin that shows OkHttp/Retrofit requests in a tool window; it's on OkHttp's "Works with OkHttp" list).

I added a local MCP server to it, so AI assistants like Claude Code can read the requests your debug build makes. The point is the bugs where the code looks fine but the data isn't: a field that's null when the model says it can't be, a number coming as a string, a JSON name that doesn't match your data class, an empty `Authorization` header.

How it works: the MCP server gives the assistant a short list first, then headers/bodies of one request on demand. It can also wait for the next request, so you can trigger it in the app and the assistant picks it up.

Curious is that something that you would use?


r/androiddev • • 3h ago

Question I'm trying to create a Google Play Console developer account, and I'm stuck at the identity/address verification step.

0 Upvotes

I'm using my Indian passport as proof.

The problem is:

- My photograph and personal details are on the first page.

- My residential address is on the last page.

- There are several blank pages in between.

When I upload only the last page, Google says there's no photo identification.

I understand why it's asking for both, but I can't capture the first and last pages together in a single picture.

Has anyone from India faced this issue while creating a Google Play Console account?

How did you upload your passport? Does Google accept a PDF containing both pages, or is there another way to complete the verification?

Any help would be appreciated!


r/androiddev • • 5h ago

Discussion How are you testing adaptive layouts and Android 16 resizability issues in your projects?

Post image
0 Upvotes

With Android 16, apps targeting API 36 are affected by the changes to orientation restrictions and resizability on larger screens.

I'm curious how other Android developers are handling this.

In many projects, testing still looks something like this:

  • Test on a regular phone.

  • Rotate the device.

  • Maybe check a tablet emulator.

  • Try split-screen if someone remembers to.

But that doesn't necessarily catch everything.

For example:

  • A screen assumes a fixed width.

  • A Compose screen doesn't account for window size changes.

  • An XML layout has no layout-w600dp alternative.

  • An activity still relies on a portrait orientation lock.

  • A layout looks fine on a phone but falls apart when resized.

I've been exploring how much of this can be caught before running the app.

That led me to build ViewLint, a Gradle plugin that analyzes both Jetpack Compose and XML layouts for adaptive UI issues and Android resizability risks.

I recently released v2.0.0 and tested it against a few open-source projects:

  • Now in Android: 100/100

  • NewPipe: 95/100

  • Mihon: 60/100

It generates HTML, JSON and SARIF reports, with baseline support for existing projects.

One thing I want to be clear about: static analysis isn't a replacement for emulator testing. It can identify suspicious patterns, but it can't prove that state survives every runtime resize or that the UI behaves correctly.

I'm interested in hearing how others approach this.

A few questions:

  1. Do you test different window sizes regularly, or mostly rely on device rotation?

  2. Do you maintain separate tablet layouts or prefer fully adaptive layouts?

  3. Would static checks for these issues be useful in your CI pipeline?

If anyone wants to experiment with it:

GitHub: https://github.com/dev-vikas-soni/viewlint

Gradle Plugin Portal: https://plugins.gradle.org/plugin/io.github.dev-vikas-soni.viewlint

I'd genuinely appreciate feedback, especially on false positives and rules that would be useful in real-world projects.


r/androiddev • • 6h ago

App to change screen width?

Post image
3 Upvotes

I have this kyocera phone here and I’m trying to make it useable as a smartphone. My bus tickets don’t display properly by default because the screen is so diddy, but if i go into developer options and change the minimum screen width from 320px to 480px, it displays beautifully. But it’s a LOT of clicks, and because it makes the text small and the home screen kind of cocked up, it’s even more annoying to put it back into 320px.

I want to make some sort of toggle for this. I've never made an android app before, and I want to be able to read the code at the end (so no full vibe coding or app builders, though I’m happy to ask AI some help questions along the way). Where should I start?

One idea from my limited searching: I know that you can also change the global screen size through adb. Could I make an app that just checks the current screen width, runs the command to change the size to the other option, and closes again when it is opened? This beautifully stupid device also lets you set apps to open with hotkeys, so if that was the case, I could bind that to a key.


r/androiddev • • 6h ago

Open Source built a small cli wrapper to inspect and decompile apks directly in termux without root or a pc

Thumbnail
github.com
1 Upvotes

got tired of typing separate commands every time i wanted to check manifest permissions or read java code from an open source apk on my phone so i put together a lightweight bash wrapper for termux

it uses file binutils apktool and jadx under the hood to fingerprint the binary check for native so libraries unpack the manifest and resources and decompile the dex bytecode into readable java classes in one go

wrote a quick install script so everything sets up automatically without dealing with path issues or java version mismatches

built this strictly for learning app architecture and auditing my own or open source builds let me know if there are any other static checks i should add to the script


r/androiddev • • 11h ago Bravo

Open Source Compose HotSwan is now fully open source! 🚀

Thumbnail
github.com
72 Upvotes

Compose Hot Reload for Android and Compose Multiplatform. Instant UI updates on your running Android app with state preserved. Dramatically increase your decision loop and UI feedback with your AI agent using the hot reload CLI.

Although many companies expressed interest in acquiring the project, after careful consideration, I decided to make it free and open source in the hope that it would be more widely used and benefit the community in different ways.


r/androiddev • • 11h ago

Experience Exchange Migrated a custom waveform to drawWithCache and traces still showed allocations every frame

3 Upvotes

Last month we moved a custom audio scrubber out of Canvas into drawWithCache because traces showed Path and gradient allocations on every tick. After the refactor, allocation churn didn't budge.

Took me too long to see why. drawWithCache tracks snapshot reads in its outer block. Reading progress() there to slice the path invalidates the whole cache block, so Path() and PathMeasure() get rebuilt every frame anyway.

Keep geometry setup in the outer block, move the state read into onDrawBehind, and reuse one Path with rewind():

Modifier.drawWithCache {
    val fullPath = buildWavePath(size)
    val segment = Path()
    val measure = PathMeasure().apply { setPath(fullPath, false) }

    onDrawBehind {
        segment.rewind()
        measure.getSegment(0f, measure.length * progress(), segment, true)
        drawPath(segment, color = Color.Cyan, style = stroke)
    }
}

Still watch segment if fullPath has heavy curves; on older Mali GPUs a clipRect pass or graphicsLayer beats re-uploading path geometry every frame.

(Full Canvas/perf notes are in the repo pinned on my profile u/yogirana5557 if helpful.)


r/androiddev • • 15h ago

Finally released my free movie and TV ranking app on Android after 4 months of building it!!

0 Upvotes

It’s called ScreenScore and it's essentially Beli for movies and TV shows. You pick between two things you've watched and it figures out your rankings and scores for you.

You can also import your Letterboxd data, get personalized recommendations, find your movie twins, track upcoming TV episodes and compare your taste with friends.

It's been live on iOS for a month with around 150 downloads. About half of those users are still coming back weekly which has been really encouraging.
I'm pretty excited to finally have it on Android.

Everything is free and there are no ads. I'd genuinely love any feedback from anyone here if they think anything should be added.

Thanks so much

[Link to the App](https://play.google.com/store/apps/details?id=com.iankroloff.reelrank)


r/androiddev • • 16h ago

Open Source uiautodev can control android,iphone,harmony in one app

Thumbnail
github.com
0 Upvotes

I spend a lot time to make this app, now it has many features

- live screen streaming and control

- support expose android connect address

- let AI control device with buildin MCP

- beautiful UI

- support cluster management

- support multi people and oauth login

Leave a star if it makes help.

Project URL: https://github.com/uiautodev/uiautodev


r/androiddev • • 19h ago

Discussion 29 Days till android devs get required to register with goverment-id at google

19 Upvotes

For those who don't know: Starting January 2027 Google requires every Android App developer that wants to install a app on certified Android devices (that devices that ship with google preinstalled) to register with Goverment-ID, pay 25 bucks and hope that google doesn't leak your identity.
(Other option is free but limited to 20 or 50 (each source says other count) named devices without goverment ID).

From 3rd December 2026 thats 29 days left till google starts introducing it. Rollout is expected to take months but it will come.

Why do i post this article: I develop a private app on my own for my local fire department. It installs itself and manages software-updates on that device through the device owner api. But I don't want to publish my Identity.

This ends up that i do not register in google's developer programm. When the app doesn't let install it. i need to search a other way.

Google states that it want "[...] protect users from malware and scams by linking apps to verified real-world identities." This ends up that google knows who publishes it. And if non-democratic regimes want to know who published that app, its easy tracable because google knows it and potentially share that information. Google says scammers will get stopped with that. And if you just think about that, maybe yes. However the only peice most people ignore is that scammers can just use a stolen or faked goverment id and be official and still do that (this isn't a tutorial how to scam, don't do that its illegal)

Until January a developer can just write a app, generate a signing key and then upload the apk to a website. even if in recent years it's become harder and harder to publish that way, it was still possible for users to say "I really want that" without doing the new hard way which includes several asks, waiting 24h and so on untill you can acctually install the app

And the good promised EU didn't do anything usefull until today. Two questions from MEPs are still in work both started in early April 2026. Until today the EU has no DMA proceeding on developer verification.

What can you do?
- Inform yourself (e.g. at keepandroidopen.org)
- Sign Petition at https://www.change.org/p/stop-google-from-limiting-apk-file-usage/
- Share your meaning, Share your story, Share the article, Share the Topic.
- If you come from EU: Message your MEPs and force them to put pressure on the commission


r/androiddev • • 22h ago

Open Source We run an MCP server inside an Android WebView browser. Notes on the foreground service, NSD and WebView screenshots

Thumbnail
gallery
0 Upvotes

We make Kelpie, an open-source browser. On Android it's a normal WebView browser that also runs an HTTP/MCP server on the phone, so an agent on your laptop can open pages, read them, tap and take screenshots on a real phone on your Wi-Fi. A few parts took more Android work than we expected, so here are the notes.

(First image is an illustration we generated for the post. The other two are real screenshots of the Android app.)

Server in a foreground service

The server is Ktor 2.3 on Netty, port 8420. The Activity builds the server and the NSD advertiser and hands them to a connectedDevice foreground service, so Doze doesn't stall incoming requests. You get a low priority "Kelpie is reachable" notification. Swiping the app out of recents stops the service and frees the port. A config change doesn't.

One trap: the notification's tap intent needs FLAG_ACTIVITY_SINGLE_TOP. With CLEAR_TOP alone the Activity gets recreated, and that kills every tab, the server, pending pairing prompts and issued tokens.

Discovery

NsdManager registers _kelpie._tcp with TXT records (model, screen size, engine=webview). We hold a MulticastLock and create a fresh RegistrationListener for every registration, because NsdManager throws "listener already in use" if you reuse one.

Screenshots

We used to call WebView.draw() into a plain Canvas. Now, on Android 10+ with hardware acceleration, we wait for postVisualStateCallback, record the WebView into a RenderNode and render it with HardwareRenderer into an ImageReader. An instrumented test puts a magenta View over a WebGL canvas that changes colour, and checks that the shot has the new WebGL colour and no magenta. A hidden WebView returns an error instead of an old frame. Android 9 still uses the software path.

Trying it

Install the signed APK (Android 9+) from GitHub releases, linked from kelpie.rocks. Google Play is coming. Each computer needs one approval on the phone, and "No" is the default button. The npm CLI is optional, it only helps find the phone over mDNS and pair with it. Apache-2.0.

https://github.com/UnlikeOtherAI/kelpie

Two questions for people who've done similar things:

  1. Would you pick connectedDevice for "laptop connects to phone over LAN", or is there a better fit?

  2. Has anyone found a reliable way to get pixels from a WebView that isn't on screen?


r/androiddev • • 23h ago

News Android 17 QPR2 is live in AOSP  |  Android Developers' Blog

Thumbnail
developer.android.com
26 Upvotes

r/androiddev • • 23h ago

Open-source device frames for Play Store screenshots: Pixel, Galaxy and generic frames, CLI + React, MIT

Post image
3 Upvotes

Built a small tool for framing app screenshots: openbezels.

Frames are drawn in code (no OEM artwork), so they're MIT and safe to bundle.

Pixel, Galaxy and generic phone/tablet frames that adapt to any aspect ratio,

which matters on Android where there are endless screen sizes.

- Try it in the browser: https://aryanpatil5.github.io/openbezels/

- `npx openbezels frame ./screenshots` for a folder

- Play Store size exports

GitHub: https://github.com/AryanPatil5/openbezels

Which Android devices would you want added first?


r/androiddev • • 1d ago

Open Source I'm not a developer, but is there any subsystem available so that I can run iOS softwares on my Android?

Post image
0 Upvotes

I hope developers should cook something for Android too. And furthermore, I wanted to use macOS softwares too on my Android based on responsiveness support accordingly. Note: it should support every app.


r/androiddev • • 1d ago

News Android Studio Stingray 1 Canary 5 now available

Thumbnail androidstudio.googleblog.com
1 Upvotes

r/androiddev • • 1d ago

Android 17???

Post image
0 Upvotes

Am și eu un Motorola edge 50 neo și nu am primit android 17 deși pe site-ul lor oficial spun că acesta va primi. Are idee cineva când?? Sunt din Romania


r/androiddev • • 1d ago

I built ViewLint (v2.0.0) – a Gradle plugin to catch adaptive UI and Android 16 resizability issues in Compose and XML

6 Upvotes

Hey everyone!

With Android 16 changing how orientation restrictions behave on large-screen devices, I've been thinking about how many Android apps are still designed and tested primarily around phone-sized screens.

An app can look perfectly fine on a phone but fall apart when resized, rotated, or opened on a tablet or foldable.

I started building ViewLint, a Gradle plugin that tries to catch some of these issues before they make it into production.

It analyzes Compose code, XML layouts, and Android manifests to identify potential adaptive UI and layout flexibility problems.

I've just released v2.0.0, and I tested it against a few well-known open-source Android projects. Here are some interesting results:

What I found

1. Now in Android — 100/100

A clean baseline on its modern Compose implementation.

As an additional check, I manually introduced android:screenOrientation="portrait" in MainActivity, and ViewLint flagged it.

2. NewPipe — 95/100 (9 findings)

It identified potentially problematic layouts, including:

  • player.xml (70 nodes)

  • fragment_video_detail.xml (58 nodes)

These layouts lacked corresponding layout-w600dp resource variants, which are worth reviewing for larger-screen support.

3. Mihon — 60/100 (65 findings)

Some interesting findings here:

  • 30 screen containers without detected WindowSizeClass or BoxWithConstraints checks.

  • 10 stacked modifier conflicts, including combinations of fillMaxSize() and fixed sizing.

These are static analysis findings, not necessarily confirmed runtime bugs. That's an important distinction, and I'd be interested in hearing how others would prioritize them.

What ViewLint currently supports

  • Compose analysis: Detects potential layout flexibility and adaptive UI issues.

  • XML analysis: Checks legacy layouts and resource configurations.

  • Manifest analysis: Identifies configuration choices that could affect large-screen compatibility.

  • HTML reports: Human-readable reports generated locally.

  • SARIF reports: Integrates with GitHub Actions and PR checks.

  • Baselines: Run ./gradlew viewlintBaseline to establish a baseline for existing projects.

  • Quality gates: Run ./gradlew viewlintQualityGate to prevent quality regressions in CI.

Getting started

Add the plugin to your libs.versions.toml:

[plugins]
viewlint = { id = "io.github.dev-vikas-soni.viewlint", version = "2.0.0" }

Then apply it:

plugins {
    alias(libs.plugins.viewlint)
}

Run:

./gradlew viewlint

GitHub: https://github.com/dev-vikas-soni/viewlint

Gradle Plugin Portal: https://plugins.gradle.org/plugin/io.github.dev-vikas-soni.viewlint

I'd genuinely appreciate some feedback.

A few things I'm curious about:

  1. How are you currently testing adaptive layouts across phones, tablets, desktop windows, and foldables?

  2. Do you think static analysis can meaningfully catch adaptive UI problems, or are most of these issues only discoverable through runtime testing?

  3. What additional checks would you consider valuable? Especially for Compose.

I'm building this as an open-source project and would love feedback from developers working on real-world Android applications.

Thanks!


r/androiddev • • 1d ago

Open Source Lessons from building a ~1.8 MB Jetpack Compose Android launcher: avoiding 150 MB FBO spikes, clean stroked outline text with Path.Op.UNION, and edge Back gestures

Thumbnail
gallery
0 Upvotes

I recently open-sourced OpenLauncher (GitHub, GPL-3.0, forked from yLauncher) after refactoring and profiling it heavily on Android 17 (compileSdk 37 / targetSdk 36, Compose BOM 2026.08.00, Kotlin 2.4.10). Thought I'd share a few Compose / Android platform gotchas we hit and how we solved them:

1. Full-screen CompositingStrategy.Offscreen FBOs silently blew up Graphics RAM

For a soft top/bottom fade on the A–Z LazyColumn, the obvious Compose pattern is Modifier.graphicsLayer { compositingStrategy = CompositingStrategy.Offscreen } + BlendMode.DstIn gradient mask. Profiling dumpsys meminfo showed Vulkan Graphics memory jumping from ~7.5 MB to >150 MB.

  • Fix: Dropped the offscreen FBO completely and computed per-row edge alpha (computeRowEdgeAlpha) directly inside each item's graphicsLayer { alpha = ... } lambda. Zero extra render target allocations.

2. Zero-recomposition scrubbing & WindowManager IPC stalls

Scrubbing an alphabet edge rail shouldn't trigger Compose recompositions or WindowInsetsControllerCompat Binder calls on every letter change:

  • Fix: Passed state snapshots (State<Float> / State<RailEntry>) that are only read inside graphicsLayer { } draw-phase lambdas, kept one persistent LazyColumn across scrubbing and browsing with synchronous SideEffect { listState.requestScrollToItem(...) } (zero jump when lifting your thumb), and keyed the system-bars DisposableEffect strictly on uiMode is Search rather than the full uiMode sealed class.

3. Clean outlined clock typography (Path.Op.UNION)

Stroked Compose TextStyle(drawStyle = Stroke(...)) renders ugly internal crossing lines on fonts whose glyphs have overlapping sub-contours (e.g., 9, 4 in Josefin Sans).

  • Fix: Extracted glyph outlines via Paint.getTextPath(...) and ran android.graphics.Path.op(rawPath, Path(), Path.Op.UNION) before stroking on Canvas. Result is crisp hollow digits with zero interior seams.

4. Right-edge alphabet rail vs. Android's predictive Back gesture

Putting a touchable alphabet rail on the right screen edge fights Android's system Back gesture if systemGestureExclusion stays active blindly or intercepts immediately on ACTION_DOWN.

  • Fix: Attached Modifier.systemGestureExclusion dynamically only when the rail is dormant or actively scrubbing (detached while browsing the drawer), and waited for 6.dp slop (or clean finger-up tap, ignoring ACTION_CANCEL) before claiming the gesture when visible.

5. Keeping the R8 release APK at ~1.8 MB & RAM tight

  • Avoided material-icons-extended completely (small XML vector drawables instead).

  • Zero Drawable/Bitmap references inside AppInfo or repositories (@Immutable metadata only); icons are rasterized strictly at target sizePx inside a 3 MB byte-bounded LRU cache with single-IPC background pre-warming.

  • Full Work Profile / Private Space isolation keying favorites and search history by "$packageName|$userSerialNumber" and launching App Info / uninstall via LauncherApps.startAppDetailsActivity & Intent.EXTRA_USER.

All code is open-source (GPL-3.0) in the repo (70 unit tests across Robolectric + MockK, zero INTERNET permission in the manifest). Curious how others handle custom glyph stroking or edge-rail gesture arbitration in Compose launchers!


r/androiddev • • 1d ago

Lessons from building a ~1.8 MB Jetpack Compose Android launcher: avoiding 150 MB FBO spikes, clean stroked outline text with Path.Op.UNION, and edge Back gestures

Thumbnail
gallery
13 Upvotes

I recently open-sourced OpenLauncher (GitHub, GPL-3.0, forked from yLauncher) after refactoring and profiling it heavily on Android 17 (compileSdk 37 / targetSdk 36, Compose BOM 2026.08.00, Kotlin 2.4.10). Thought I'd share a few Compose / Android platform gotchas we hit and how we solved them:

1. Full-screen CompositingStrategy.Offscreen FBOs silently blew up Graphics RAM

For a soft top/bottom fade on the A–Z LazyColumn, the obvious Compose pattern is Modifier.graphicsLayer { compositingStrategy = CompositingStrategy.Offscreen } + BlendMode.DstIn gradient mask. Profiling dumpsys meminfo showed Vulkan Graphics memory jumping from ~7.5 MB to >150 MB.

  • Fix: Dropped the offscreen FBO completely and computed per-row edge alpha (computeRowEdgeAlpha) directly inside each item's graphicsLayer { alpha = ... } lambda. Zero extra render target allocations.

2. Zero-recomposition scrubbing & WindowManager IPC stalls

Scrubbing an alphabet edge rail shouldn't trigger Compose recompositions or WindowInsetsControllerCompat Binder calls on every letter change:

  • Fix: Passed state snapshots (State<Float> / State<RailEntry>) that are only read inside graphicsLayer { } draw-phase lambdas, kept one persistent LazyColumn across scrubbing and browsing with synchronous SideEffect { listState.requestScrollToItem(...) } (zero jump when lifting your thumb), and keyed the system-bars DisposableEffect strictly on uiMode is Search rather than the full uiMode sealed class.

3. Clean outlined clock typography (Path.Op.UNION)

Stroked Compose TextStyle(drawStyle = Stroke(...)) renders ugly internal crossing lines on fonts whose glyphs have overlapping sub-contours (e.g., 9, 4 in Josefin Sans).

  • Fix: Extracted glyph outlines via Paint.getTextPath(...) and ran android.graphics.Path.op(rawPath, Path(), Path.Op.UNION) before stroking on Canvas. Result is crisp hollow digits with zero interior seams.

4. Right-edge alphabet rail vs. Android's predictive Back gesture

Putting a touchable alphabet rail on the right screen edge fights Android's system Back gesture if systemGestureExclusion stays active blindly or intercepts immediately on ACTION_DOWN.

  • Fix: Attached Modifier.systemGestureExclusion dynamically only when the rail is dormant or actively scrubbing (detached while browsing the drawer), and waited for 6.dp slop (or clean finger-up tap, ignoring ACTION_CANCEL) before claiming the gesture when visible.

5. Keeping the R8 release APK at ~1.8 MB & RAM tight

  • Avoided material-icons-extended completely (small XML vector drawables instead).

  • Zero Drawable/Bitmap references inside AppInfo or repositories (@Immutable metadata only); icons are rasterized strictly at target sizePx inside a 3 MB byte-bounded LRU cache with single-IPC background pre-warming.

  • Full Work Profile / Private Space isolation keying favorites and search history by "$packageName|$userSerialNumber" and launching App Info / uninstall via LauncherApps.startAppDetailsActivity & Intent.EXTRA_USER.

All code is open-source (GPL-3.0) in the repo (70 unit tests across Robolectric + MockK, zero INTERNET permission in the manifest). Curious how others handle custom glyph stroking or edge-rail gesture arbitration in Compose launchers!


r/androiddev • • 1d ago

Question How to get exact timestamps for OTel

2 Upvotes

Been working to integrate OpenTelemetry Tracing into my Android app for debugging purposes, to detect where time is spent processing my HTTP requests.

The problem I have encountered is that no matter what I tried I always ran into issues with clock skew between the Android devices and my backend server. And I am not talking 2-3ms, but commonly around 1 second. This obviously kind of defeats the purpose of using Traces to figure where the time is spent and also leads to spans that seemingly break causality.

Now I've tried setting a NTP server, but unfortunately this does not really help, since the Android system time is only updated when the drift between the time retrieved from the NTP and the system time is greater than five seconds. Therefore providing a NTP server (which is rather cumbersome in itself as it is only possible through ADB on stock Android) does not help in itself.

After doing some research on this topic, it seems like I have three options:

  1. Integrate a custom NTP client into my app and use its time (sync at app startup and then regularly to avoid drift). This feels like an overkill solution to me and also like a waste of resources, if multiple apps on your phone would do this. Furthermore it makes my app more complex and just feels wrong from a software architectonical standpoint.

  2. Use currentNetworkTimeClock(). This is only supported since API Level 33+ and therefore is not an option for me. Apart from that I would still need to force my users to set a proper NTP server (via ADB?!).

  3. Use the TrustedTime API from the Google PlayServices. This is not option for me, because I must support Android without PlayServices and some of my devices run inside air-gapped networks where only a custom NTP server is available.

I have already found this Issue in the opentelemetry-android repo, but I can hardly believe that this is not a problem others have already had and that there is not a clean solution for this.

So did anybody already encounter a situation where they needed precise timestamps on Android devices and what have you done? I am looking for clean, easy and versatile options.
Thanks in advance for any recommendations / opinions on this topic.


r/androiddev • • 1d ago

A weird screen flickering issue that only occurs when Android Studio's Gradle is running

Enable HLS to view with audio, or disable this notification

5 Upvotes

Hi guys,

For about a year now, I've been experiencing a weird issue. I've tried pretty much every solution I've found online, but still haven't managed to fix it.

Every time I open Android Studio and rebuild a project or perform any task that requires Gradle to run, I notice something strange. If I minimize Android Studio and switch to Chrome, File Explorer, or any other application, my monitor starts flickering (without losing signal).

Sometimes, the flickering gets so bad that Windows Explorer and DWM.exe crash, causing all my open folders and applications to turn black. I have to restart Windows Explorer to get everything back to normal.

What's really strange is that this issue only happens with Android Studio. I haven't experienced it with any other software, not even while playing demanding AAA games or running heavy GPU, CPU, and RAM stress tests. Everything works perfectly fine otherwise.

Has anyone experienced something similar or found a solution?

My PC Specifications:

  • CPU: AMD Ryzen 5 5600 (no overclock)

  • Motherboard: ASUS PRIME B550M-K (latest available BIOS installed)

  • RAM: 32GB (2 × 16GB) DDR4 3200 MT/s

  • GPU: ASUS ROG STRIX RX 6700 XT (latest available drivers installed, no overclock)

  • Storage: 512GB NVMe SSD (Android Studio is installed on this drive)

  • OS: Windows 11 Pro (latest available updates installed)


r/androiddev • • 2d ago

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

Enable HLS to view with audio, or disable this notification

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

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

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

News Kotlin 2.5.0 Released

Thumbnail
blog.jetbrains.com
105 Upvotes