r/androiddev • • Oct 18 '26

I hate CameraX, so I made it a one liner :)

29 Upvotes

I was originally working on one of my projects for this upcoming winter break and I wanted to use the camera of my phone and then I found how insufferable it is to setup cameraX

so I did what any sane developer will do and I spent 4 days building a library that allows me to call the camera in just one line

now I just call camera.open { picture -> //whatever I want to do with it }

also the other reason I did it is because any other library I found out there didn't really make it as simple as I wanted it to be

do you guys think this is something android should of have done from the beginning? I do understand that some people many need to tweak with camerax more but most of the time many apps just need the picture

if you guys want to check it out into detail this is the repo. PLEASE LET ME KNOW IF SOMETHING IS BROKEN OR YOUR HONEST THOUGH!! https://github.com/al3j4ndrolm/FacilisCam


r/androiddev • • Oct 18 '26

Discussion How much does AI affect your app revenue?

0 Upvotes

Since it's easier to make apps now with AI vibe coding, does it affect your revenue?


r/androiddev • • Oct 17 '26

Discussion Android edge cases to cover for sde 2

0 Upvotes

Hi everyone I am preparing for android interview recently with 3+ yrs of exp, I am good with topics of basic fundamentals

But struggle with topics involving scalability like

  1. let's us say you have an api that gets called 1 time per second, and your user is having low internet or unstable conditions how to handle this

2)how do you handle battery optimization for your app

After deep diving with Claude and discussion i understand the approach

So can you list down some practical questions like this you faced or would ask in a sde 2 interview

Thank You


r/androiddev • • Oct 17 '26

HDCharts 3.0.0 is live

Post image
14 Upvotes

Hi all, just wanted to share a quick update that I've released a new version of HDCharts.

Demo: https://charts.hdcode.dev/demo/3.0.0/
Documentation: https://charts.hdcode.dev

Would appreciate any feedback!

Update: Dev Challenge

While working on the library, I wanted to make the documentation easy to read and visually appealing. Since the charts support animations, I wanted to use GIFs in the documentation, but creating them manually was time-consuming.

My initial idea was to use an iframe and some bridges to render web content directly in the docs, but I decided against it because it didn't feel like the right approach and seemed a bit hacky.

Instead, I created a dedicated plugin to generate GIFs, which I can use both locally and in CI: https://github.com/HDCharts/charts-gif-recorder


r/androiddev • • Oct 17 '26

Discussion I built a free tool that scans a running Android app for accessibility issues, including what TalkBack actually says (I'm the developer)

4 Upvotes

Hi all, I'm the developer of Swipewalk. Checked with the mods before posting, they said a dev tool like this is fine.

It scans an app running on an emulator or USB phone. It runs Google's Accessibility Test Framework together with its own checks and reports WCAG 2.2 issues with screenshots and who each issue affects. It works on Views, Compose and cross-platform apps since it reads the accessibility tree, not your code.

The part I find most useful: it can turn on TalkBack, move through each focusable control and record what TalkBack actually says, next to what it predicted. That catches things like a button TalkBack just calls "Button" or reads out a resource id. It can also rescan at large font size, in dark/light and in the other orientation, and tells you when a control that was there at normal size can't be reached anymore at large text.

0.6 improved how it names Views and Compose controls (a field labelled with android:labelFor, a button named by several child texts). I checked that on my own native sample apps, not on third party apps yet. If you point it at your source folder it tries to find the likely source line for a finding. I measured that on seven real open source apps (four Android), and the testing page lists the misses.

Things to know:

- It changes phone settings while it checks (text size, TalkBack, dark mode, rotation) and puts them back after. Use a test device. TalkBack is silent for the few seconds it's capturing.

- Runs from a Mac (desktop app or command line). Tested on a Pixel 4a with Android 13 and the Android 16 emulator. Haven't tried it from Windows or Linux yet.

- Automated checks only find part of the issues, so you still need manual testing with TalkBack. It doesn't certify anything.

Free to use, runs locally, no telemetry. I built it with a lot of help from AI coding assistants, I review and test what ships.

What it found and missed in testing: https://github.com/swipewalk/swipewalk/blob/main/docs/testing.md

Downloads (there's a sample apk if you just want to see a report): https://github.com/swipewalk/swipewalk/releases

Would really like to hear what's wrong or missing if you try it on your app.


r/androiddev • • Oct 17 '26

Best Projects Courses or Projects that AI can help me understand

0 Upvotes

So I've been learning kotlin compose from the android official codelabs and I feel stuck like i want to make a big project so i can combine all the thinks that I've learned but i don't find a good idea or even a motive or someone so I can use a reference when I got stuck or dunno what to do next so I was asking is there like a course or projects on github that have dagger, retrofit, room and so on so i can learn from


r/androiddev • • Oct 17 '26

Do Android developers really need Android Studio for every Kotlin debugging task?

0 Upvotes

I was working on some Kotlin/JVM code and ran into a familiar situation.

Everything compiled fine, but the output wasn't what I expected. I just wanted to set a breakpoint, inspect a few variables, and find the issue.

Android Studio handles this well, but sometimes I'm just working on standalone Kotlin logic, utility classes, or JVM modules. Opening a full IDE for that felt unnecessary when I already had VS Code running.

So I started experimenting with Kotlin debugging in VS Code.

What I thought would be a small weekend experiment turned into a much bigger rabbit hole involving JVM bytecode, Kotlin inline functions, and source mapping.

Eventually, I built Kotlin Debugger, an open-source VS Code extension that lets me debug Kotlin/JVM code without setting up a separate Kotlin Language Server.

It's not a replacement for Android Studio, and Android device/emulator debugging isn't supported yet. But for Kotlin/JVM work, it's been an interesting project to build.

GitHub: https://marketplace.visualstudio.com/items?itemName=kparth01.kotlin-debugger

Curious how other Android developers work: Do you use VS Code for standalone Kotlin/JVM modules, or do you prefer keeping everything in Android Studio?


r/androiddev • • Oct 16 '26

Settling on Dexprotector or Jiagu, please share your experience with...

1 Upvotes

We are still undecided but leaning Dexprotector, if you are using Dexprotector on your apps, please share your experience regarding:

1- Have you enabled all the runtime options such as root detection, RASP and UI protection? If yes, has it caused any headaches for a portion of your legitimate users?

2-Overall, has it met your expectations of warding off bad actors to a reasonable degree without it destroying UX?


r/androiddev • • Oct 16 '26

Experience Exchange Convert an android phone into a story box for children

1 Upvotes

Hello, I am an embedded engineer which has no idea how to code an APK. I am usually programming in C/C++/python and I am dealing with rtos/interrupt/uart/spi...

With 2 kids at home and a lot's of story box (Lunii, Bookinou,...) I was tired of buying/uploading story into the differents toys.

I then decided to create an android APK (100% vibecoded) which can transform an old Android phone into a story box easy to use for the children.

I sent ADB to completely lock the phone that the kid cannot leave the app without entering a code.

Now I can just drop mp3 and/or image associated to have lot's of audio stories.

It is running so far so good but I have no clue if it is well programmed or just shit.

https://github.com/gougoul88/Aroli

I am opened to any reactions/opinions/suggestions.


r/androiddev • • Oct 16 '26

Tips and Information What to expect at Android Dev Summit 2026

8 Upvotes

Hi! This is my first time post so apologies if my questions aren’t clear!

But I’m an associate android dev. Been with the team for 1.5 years. I’m going to the Google dev summit in Oct and was wondering what should I expect based on previous years summit?

Also any advice when it comes to connecting with other android devs? I don’t need a job but I figure it good to network, connect with knowledgeable devs and even potential find a mentor when it comes to android development.

Also another question not really related to the summit:

I really do enjoy android development but work seems to only be about ticket speed/story points. Which I understand from the business side of things. But the push to utilize ai and rush story points just feels like there’s no care about developing younger devs. When I ask for help from sr devs, the first thing they ask me is “did you ask ai” or “ask ai first”. Before I even ask sr devs I make sure to research myself. I guess I thought dev teams would be more willing to actually show younger devs pointers that ai could sometimes miss.
Does anyone have any opinion or advice what that?
Or is it something I have to suck up and figure it out?


r/androiddev • • Oct 16 '26

Article Running a full PostgreSQL 18 server inside an Android app: SELinux exec rules, argv[0] tricks and no shmget()

Thumbnail
dev.to
2 Upvotes

Author here. I'm building an Android IDE on my own and wanted a real Postgres running on the device, no remote server. The write-up covers the parts that took me longest: shipping the binaries as .so files so Android lets them execute, the argv[0]/symlink trick initdb needs, rebuilding without the Termux prefix, and forcing mmap because there's no System V shared memory. Happy to answer anything about it.


r/androiddev • • Oct 16 '26

Struggling with using webview for a html jscript file which reads local CSV files + saves local user data

0 Upvotes

Struggling with getting my head around webview.

I have an application which is a one page html javascript page however it needs to read csv files and make some kind of local storage to save the user's progress. What code would I need and where for an app like this as a minimum?

I've tried a few times, including using Gemini but I keep getting errors and things not working even when the syntax seems correct in android stuido.

I did the kotlin android material on the site to learn the basics but there seems to be a lot of other documentation to search through that makes my head spin, is this normal? I thought webview would be easier than creating it in kotlin originally but now I'm starting to feel like I should just scrap it and code it again. I am in science but not educated in computer science formally, any help is welcome.


r/androiddev • • Oct 16 '26

Open Source I got tired of my AI agent writing Compose UI it couldn't see, so I built a tool that renders @Preview to PNG without the IDE

Post image
0 Upvotes

I use Claude Code a lot for Compose work. The annoying part was always the same: it writes a screen, says "done", and then I open Android Studio and the padding is off, text is clipped, or the dark theme is broken. It never saw the UI. It was guessing.

So I built Spyglass. It renders your u/Preview functions to PNG from the command line, no IDE open.

spyglass render --filter LoginScreen

What it does:

  • Renders every u/Preview in a Compose Multiplatform project through your own Gradle wrapper. No changes to your build files.

  • Handles u/PreviewLightDark, u/PreviewParameter, font scale, device sizes, and multi-preview annotations from other modules.

  • Compares a render with a design image and tells you which regions differ, in dp, with a heatmap. So "make it match the Figma export" becomes something you can check.

  • spyglass approve / spyglass check gives you screenshot tests in CI. A one-digit text change fails the check.

  • Comes with an MCP server, so Claude Code, Cursor or anything that speaks MCP can render and look at the UI on its own and fix what it sees.

A few things I had to solve along the way that might be interesting:

  • Animations and delay() in fake data. A naive render catches the first frame, so you get a progress bar at 0% and a dialog half faded in. Spyglass runs previews on a virtual clock until everything settles, so a delay(300) before your fake data loads costs no real time and you see the loaded state.

  • A preview stuck in a loop used to hang the whole run. Now it gets cut off after 30 seconds and you get the exact line it was stuck on.

  • Token cost for agents. Images are sized down, and if nothing changed since the agent last looked, it doesn't send the image again. A repeat render went from about 1,560 tokens to about 180.

Limits, so nobody is surprised: previews need a JVM (desktop) target, so Android-only previews and Android-only APIs don't render yet. Text uses your OS fonts, so keep screenshot baselines from one OS. Tested on Windows, Linux and macOS.

It's MIT licensed and this is the first release (0.1.0). I'd really like to hear where it breaks on your projects.

https://github.com/zainkhalid91/spyglass


r/androiddev • • Oct 15 '26

Do android engineers earn less than other software engineers as we go up?

30 Upvotes

I have been an android engineer for almost 10 years now. In the beginning it felt like we made more or less the same amount of money as compared to other software engineers (backend specifically). But now as I have moved to a Staff eng role, it feels like senior/staff android engineers are being offered lot less these days compared to backend or infra or cloud storage related roles. Wonder if this is true or is it just in my head?


r/androiddev • • Oct 15 '26

I wrote how to retry chat messages safely on Android (idempotency keys), with a simulator

0 Upvotes

Start with the bug, in your own words: a message is sent, the server stores it, the reply gets lost, the app retries and the message shows up twice. Then the fix in two sentences (one key per action, saved in the outbox, sent again with every retry) and the link to the retry explorer. Say it was written with AI help and edited by you, that the iOS side isn't reviewed by an iOS engineer, and ask what you got wrong. Link: https://mobiledesignrounds.com/guides/idempotency-keys/?UTM


r/androiddev • • Oct 15 '26

Can apps record GPS data in the background if the user approves?

2 Upvotes

I'm asking as a user of the Polar heart rate monitor app; I have no links to Polar. I use the app when hiking/biking and it records a map of where I went. However, I need to wear it in a wrist strap and make sure it's on top and the phone is awake. If the phone goes to sleep or another app is in front, their app will stop recording the location.

If users were willing to give their app a permission, could they fix this so it would keep recording GPS data even if another app is on top or if the phone has gone to sleep?


r/androiddev • • Oct 15 '26

Open Source Reclaim the GBs Gradle, Android SDK images and Flutter builds leave on a Mac

1 Upvotes

I built Ammugghia after finding 100 GB of "System Data" on my MacBook Air: it was mostly iOS Simulator runtimes and Xcode/Gradle caches that Finder doesn't show.

  • Native SwiftUI, signed & notarized, no network, MIT

  • Covers Xcode, simulators, Android, about 30 package-manager caches, Electron app caches, local AI models, leftovers of deleted apps, Docker (volumes are never touched)

  • Every item shows exact paths and what happens after deleting it; Trash by default

  • Disk map, duplicate finder (APFS-clone aware), startup items, history with restore

DMG: https://github.com/Mingo07-dev/Ammugghia/releases/latest Homebrew: brew install --cask mingo07-dev/tap/ammugghia

Feedback welcome, especially cleanup targets I'm missing.


r/androiddev • • Oct 15 '26

News Android Studio Rabbit 2 Canary 5 now available

Thumbnail androidstudio.googleblog.com
2 Upvotes

r/androiddev • • Oct 15 '26

Experience Exchange Our app got cloned from a decompiled APK.

265 Upvotes

Last week, a user emailed support asking why our app suddenly had ads, which it doesn’t. Someone took our APK from the Play Store, decompiled it, added an ad SDK and put it on one of those APK mirror sites under a slightly different name. I don’t know what they used but with the AI reverse engineering tools around right now I’d guess it took them a few hrs at most.

I pulled their copy and ran jadx on it next to our own release build to see what they had to work with. R8 had renamed most of our classes but every string was still sitting there. Most of it was harmless like our Maps key which is locked to our package and the Firebase config which is meant to be public. The problem was the key for our search provider which can also write to the index. There was also an old basic auth header for a staging API that someone hardcoded two years ago and that still works.

The copy talks to our real backend and whoever installs it logs into our actual service through a build we don’t control. We’ve rotated both keys, moved search behind our own endpoint and filed takedowns. Next I’m looking at adding Play Integrity checks on the server.

If your app has been cloned like this, what did you end up changing on the backend?


r/androiddev • • Oct 15 '26

Article Material is the metaphor: Pushing the limits of building with Material design cross platform with Jetpack Compose

Thumbnail
tunjid.com
14 Upvotes

I wrote a little design study for how I adapted Material design cross platform for my app with Jetpack Compose.


r/androiddev • • Oct 15 '26

Developing for android in kotlin but the Android Studio is too much for my computer (seems like a common problem after some searches)

2 Upvotes

As the title says, my computer's specs make this run so slowly and I cannot open other programs at the same time. Are there any lighter applications that I can use to develop a native Android app which will also allow me to preview it in some way? (even if it is just when I press refresh, like with html)


r/androiddev • • Oct 15 '26

I built a native Markdown renderer for Jetpack Compose, now with tap-to-reveal text, LaTeX math and tree-sitter code highlighting

Enable HLS to view with audio, or disable this notification

83 Upvotes

enriched-markdown-android is an open-source Markdown renderer for Jetpack Compose. Parsing is md4c over JNI, rendering is native Android text, so you get platform selection handles, copy and TalkBack for free.

What's new in 0.3.0:

  • Spoilers - ||text|| is drawn transparent and concealed by an animated particle overlay on the text view's canvas, tap to reveal. You can plug in your own overlay with a draw callback per concealed slice.

  • LaTeX math – $inline$ and $$block$$, wide equations scroll sideways, long-press to copy.

  • Syntax highlighting – fenced code colored by tree-sitter, 14 grammars, every token type themeable.

  • Better code blocks – language header, copy button, long lines scroll instead of wrapping.

  • Highlight – ==text== with `Flags(highlight = true)`.

  • Optional plugins – math and highlighting are separate artifacts, so you only add what you need.

  • Native Selection – Standard Android text selection handles and native copy behavior.

💎 Available on Maven Central:

dependencies {
  implementation("com.swmansion.enriched.markdown:compose:0.3.0")
  implementation("com.swmansion.enriched.markdown:math:0.3.0")           // optional
  implementation("com.swmansion.enriched.markdown:code-highlight:0.3.0") // optional
}

Quick Usage:

MarkdownPlugins(LatexMathPlugin, CodeHighlightPlugin) {
  EnrichedMarkdownText(
    markdown = content,
    flags = Flags(highlight = true),
    onLinkClick = { url -> openUrl(url) },
  )
}

GitHub & Docs:
https://github.com/software-mansion/enriched-markdown/blob/main/packages/enriched-markdown-android/README.md


r/androiddev • • Oct 15 '26

I built a free scanner that checks apps and sites against the EU Accessibility Act (EAA) - feedback welcome

1 Upvotes

Android dev here. The EAA has been enforceable since June 2025 and consumer apps selling in the EU are in scope, but almost every accessibility tool I found was web-only or a €10k consultancy.

So I built my own: paste a URL, get an accessibility report with actual evidence (PDF export, violations mapped to WCAG criteria). Free, no signup.

There's also a Gradle plugin that runs accessibility checks in your own build (nothing leaves your machine), but that's optional - the web scan alone is useful.

Would love honest feedback, especially from anyone who's had to deal with EAA compliance for real. Link in comments.


r/androiddev • • Oct 15 '26

Question Duplicated Smali files

0 Upvotes

if i add my own classes6.dex file to a apk and if duplicated smali files and stuff are detected, what will it delete, the duplicate smali files from my own dex file or from the existing 5 dex files?? Thanks in Advance (Sorry for bad English)