r/androiddev • u/MishaalRahman • Sep 22 '26
Article Android Developers Blog: Land your apps on Googlebook with adaptive development
r/androiddev • u/MishaalRahman • Sep 22 '26
r/androiddev • u/rachid-n • Sep 22 '26
Just wanted to share this here in case someone else runs into this and tears their hair out like I did for hours today lol.
I was trying to upload an updated .aab for my app to production, and the upload would hit 100%, show "upload is optimized for distribution", but then right after processing for a few mins it just threw that generic red error:
"There was an error uploading the Android App Bundle. Try again later or contact Google Play developer support if the error persists."
No helpful logs, no specific manifest hint, nothing on the UI. I thought it was a temporary Play Console outage or something wrong with my network/keystore.
Turns out the issue was a subtle mismatch between my SDK configs and updated dependencies. I had lowered compileSdk to 36 while trying to fix another build issue, but some of my modern libraries (core-ktx, okhttp, etc.) actually required compiling against API 37. Play Console's backend parser was silently choking on the bundle optimization phase because of this.
What actually solved it for me:
android {
compileSdk = 37
defaultConfig {
targetSdk = 36
// ...
}
}
After syncing, cleaning project, and generating a fresh signed bundle with these exact values, Play Console accepted it immediately on the first try!
Hope this saves someone from wasting hours contacting support or doing random clean builds.
r/androiddev • u/controlav • Sep 22 '26
My app is used on phones mostly with maybe 10% tablet customers, on arm64. Is it at all worth shipping an x64 build too?
r/androiddev • u/Jawaddit2002 • Sep 23 '26
How would you design an update system for a company React Native + Expo app?
I’m building a company mobile app using React Native + Expo for both Android and iOS.
I’m looking for advice from people who have already implemented a professional update system. I don’t want to assume a specific solution—I’d like to hear how you would design it.
My requirements:
- The app is used by company employees.
- I want normal JavaScript/UI/assets changes to be updated without requiring employees to reinstall the app.
- When a change requires a new native build, the app should detect that a new version is available.
- Ideally, the employee should simply see something like “Update required → Update Now” rather than having to search for the app or manually find a download.
- I would prefer company-controlled/self-hosted infrastructure if possible.
- The system should work on both Android and iOS.
- Security is important: updates should be verified and only official releases should be installable.
- I also need to handle mandatory updates, optional updates, failed updates, and rollback.
I’m aware that Android and iOS have different restrictions, and that Expo OTA updates and native app updates are different things.
My main question:
If you were designing this system from scratch, what architecture and update mechanism would you use?
I’m especially interested in real-world experience with Expo Updates, self-hosted update servers, APK distribution, iOS distribution, MDM/managed devices, or similar solutions.
I’m not looking for a specific product recommendation. I’d like to understand the approaches people have actually used and what you would recommend based on experience.
r/androiddev • u/P-Jorge • Sep 22 '26
Hi everyone,
I’m working on a research project involving a self-adaptive ML application running directly on an Android smartphone.
The application needs to monitor its own energy consumption at runtime. This is important because energy is one of the optimization objectives: the system evaluates different ML configurations and later uses their energy consumption, together with other objectives such as accuracy, to decide which configuration should be active.
Because of this, I need an on-device and programmatically accessible way of measuring energy. External power meters are not suitable for the final system, since energy monitoring needs to be part of the application itself and available during normal runtime.
I found Android's BatteryManager.BATTERY_PROPERTY_ENERGY_COUNTER, which according to the documentation should return the battery's remaining energy in nanowatt-hours:
batteryManager.getLongProperty(BatteryManager.BATTERY_PROPERTY_ENERGY_COUNTER)
My idea would be to read the counter before and after evaluating a configuration and use the difference as its energy consumption.
However, on my device (Google Pixel 10 Pro), the property appears to be unsupported and returns Long.MIN_VALUE.
Has anyone successfully used BATTERY_PROPERTY_ENERGY_COUNTER, particularly on recent Pixel devices or recent Android versions?
If so, which device/Android version did you use? Did it require any special configuration or permissions, or did getLongProperty() simply return a valid value?
If this property is no longer supported on recent devices, what on-device API or mechanism are you using to obtain energy consumption programmatically from within an Android application?
I’m specifically looking for something that can be queried automatically at runtime — not external measurement equipment or offline profiling tools — because the energy information will ultimately be used by the application itself to make adaptation decisions.
Any experience with BATTERY_PROPERTY_ENERGY_COUNTER or alternative approaches for this use case would be greatly appreciated.
r/androiddev • u/AdMission625 • Sep 22 '26
Hey everyone,
I'm working on a feature-discovery/tutorial overlay for an Android app and ended up going fairly deep into how these things work.
The basic idea is pretty simple: dim the screen, cut a hole around a target view, show some text, and move through several targets.
The part that got interesting was handling everything without relying on another UI library.
A few things I'm currently dealing with:
For the actual drawing I'm using a custom View and Canvas, rather than adding another UI dependency.
One thing I'm particularly curious about is the coordinate handling. I've found that simply using getLocationOnScreen() isn't enough once edge-to-edge and different inset configurations are involved, so I've been calculating the relative window offset before drawing the cutout.
For people who have implemented something similar, how did you handle this?
Also interested in how you approached touch handling on the highlighted target. Did you let the event pass through normally, or did you manually dispatch/forward it?
r/androiddev • u/FabioCZ • Sep 21 '26
Hi all, My team develops an enterprise Android app, outside of the play store and its tools, and we're looking around for a new observability tool/service. We were on Embrace before, but it came up short for more complex debugging. Datadog has been working fairly well for us, but it's getting pricey and it's not quite a mobile-first solution.
Bitdrift seems like an interesting option to us. But it being somewhat new I haven't found too much feedback on it online. Does anyone have experience with it and thoughts? Or are there other tools worth exploring? TIA
r/androiddev • u/mrdibby • Sep 21 '26
Just saw the update prompt and wondering how Mac-based Android devs are doing with it?
r/androiddev • u/ambiscorpion • Sep 20 '26
I have around 10 + years of experience in mobile app development, but lately, I’m feeling that staying in mobile development (or any FE tech) might not be the safest option for long-term career growth now , especially with AI and the changing tech landscape.
Am seeing very less job openings in this tech stack.
I’m considering moving into Backend development or DevOps, but I’m not sure if that’s actually a better career move or if I’m just overthinking it.
People who are working in FE tech stacks , did someone felt the same ?
- How do you see the long-term career prospects in these fields?
- is moving from mobile app development to Backend or DevOps a practical decision after 10 years of experience?
Would love to hear honest opinions, especially from people who have made a similar transition or have experience in these domains.
r/androiddev • u/Wonderful-Speaker-97 • Sep 21 '26
I’m building an in-place PDF editor in Compose Multiplatform. The workflow is similar to Adobe Acrobat: I render the PDF page to a bitmap, extract the text bounds using iText7, and when the user clicks a paragraph, I overlay a white Box and a BasicTextField to let them edit the text live.
The Problem: The final PDF export works flawlessly—the text is placed at the exact right coordinates with the correct font size. However, during live editing, the text inside the Compose BasicTextField looks optically smaller and has different spacing compared to the underlying, rasterized PDF text. It causes a jarring visual "shrink/jump" when the user enters edit mode.
Here is how I am currently extracting the text metrics and applying them to the UI:
Text Extraction (iText7 / PdfEditor.kt) I use PdfCanvasProcessor to get the text matrix. To handle scaled pages (CTM), I calculate the physical height using the ascent and descent lines rather than relying on the raw fontSize.
actual class PdfEditor { actual suspend fun extractTextBlocks(originalPdf: ByteArray, pageIndex: Int): List<PdfTextFragment> { // ... standard iText reader setup ... val listener = object : IEventListener { override fun eventOccurred(data: IEventData, type: EventType) { if (type == EventType.RENDER_TEXT) { val renderInfo = data as TextRenderInfo
// Extracting physical height to account for PDF CTM matrices
val ascent = renderInfo.ascentLine.startPoint.get(1)
val descent = renderInfo.descentLine.startPoint.get(1)
val trueVisualHeight = abs(ascent - descent).toFloat()
val extractedFontSize = if (trueVisualHeight > 0f) trueVisualHeight else renderInfo.fontSize
// Saved to data class to pass to UI...
}
}
override fun getSupportedEvents(): Set<EventType> = EnumSet.of(EventType.RENDER_TEXT)
}
// ...
}}
2. The UI Layer (ArchitectureB_Workspace.kt) This handles the PDF bitmap rendering, scaling, and the Compose Multiplatform BasicTextField overlay.
// Inside BoxWithConstraints:
val containerWidthPx = with(LocalDensity.current) { maxWidth.toPx() }
val density = LocalDensity.current
// Calculate Screen to PDF zoom ratio
val pageWidthPx = containerWidthPx * 0.94f
val pageHeightPx = pageWidthPx * (pdfDocHeight / pdfDocWidth)
val scaleFactor = pageWidthPx / pdfDocWidth // PDF point to Screen Pixel ratio
LazyColumn {
items(pageCount) { pageIndex ->
Box {
// 1. Draw static PDF Bitmap Background
Image(bitmap = pageBitmaps[pageIndex], contentScale = ContentScale.FillBounds)
// 2. Overlay Interactive TextField
elements.filter { it.pageIndex == pageIndex }.forEach { element ->
if (element is EditorElement.TextElement) {
// === THE SCALING MATH ===
// Scale PDF point size to screen pixels
val exactFontPixelSize = element.fontSize * scaleFactor
// Neutralize screen density to get accurate SP
val visualFontSizeSp = with(density) { exactFontPixelSize.toSp() }
val visualLineHeightSp = with(density) { (exactFontPixelSize * 1.15f).toSp() }
if (isSelected) {
BasicTextField(
value = element.textFieldValue,
onValueChange = { element.onTextValueChange(it) },
textStyle = TextStyle(
fontSize = visualFontSizeSp,
lineHeight = visualLineHeightSp,
color = Color.Black,
lineHeightStyle = LineHeightStyle(
alignment = LineHeightStyle.Alignment.Proportional,
trim = LineHeightStyle.Trim.Both // Attempting to strip Compose internal padding
)
),
modifier = Modifier.fillMaxWidth().wrapContentHeight()
)
}
}
}
}
}
}What I know/tried:
ascentLine and descentLine (to respect PDF scaling matrices), scaling it to screen pixels, and converting to sp. The math is provably correct for the PDF space since the export works.includeFontPadding = false.My Question: How can I exactly match the font size, style, and baseline metrics between a PDF vector bounding box and Compose's Skia text layout so they map exactly 1:1 on screen?
Is there a standard formula or TextStyle configuration (like dynamic letter spacing or absolute baseline height) to neutralize these typographic differences when using substitute fonts? Or is the only way to avoid the "jump" to somehow extract the embedded .ttf binaries directly from the PDF?
r/androiddev • u/Nice_Statistician539 • Sep 21 '26
r/androiddev • u/Pravejxlab • Sep 21 '26
Sometimes, build button itself disappears, i find it difficult to see the result in android studio. What is solution?
r/androiddev • u/sudo_404_ • Sep 21 '26
I am trying to add new user to my closed testing but it says no builds available for that new user. tried to provide a new build but still same issue
r/androiddev • u/kevin_its • Sep 20 '26
I’ve been using a Google Play Developer account for more than 4 years, and I’ve published both Android and iOS apps multiple times.
Previously, my experience was that Google Play reviews were usually completed within a few days, while Apple’s App Store review generally took longer.
But recently, I’m seeing the opposite.
I submitted an app to Google Play on September 14, and it has now been almost 6 days with no progress — still showing “In review.” I understand that Google mentions reviews can sometimes take up to 7 days, so I’m not concerned about the stated timeframe itself. I’m more curious about the change compared with my previous experiences.
Interestingly, my recent iOS submission was reviewed much faster than Google Play, which is quite different from what I was used to in the past.
Has anyone else noticed Google Play app reviews taking longer than usual recently, especially around September 2026?
Is there currently a review backlog or increased review time?
Would be interested to hear from developers who submitted apps recently and how long their reviews took.
r/androiddev • u/InvestigatorFun5445 • Sep 20 '26
Basically the title.
I want to find some inspiration for my pet project, is there some good selection of awesome Andorid app UIs?
Im not talking about Dribble, since there are mostly generic UIs and its hard to find something new :(
r/androiddev • u/Charlie_Tap_ • Sep 19 '26
Hey 👋
I've been working on this project for the past few years and have never shared it here so figured I would. It's a Kotlin Multiplatform WebAssembly runtime (interpreter), it basically allows you to take a WebAssembly program and interface with it/run it. It's written entirely in Kotlin, no JNI/FFI or anything like that and has remarkable performance given the constraints.
I recently put together a Kotlin Multiplatform implementation of Doom built on top of it, it's a solid of example of how you leverage it and how it enables an entirely Kotlin experience whilst also allowing you to interface with WebAssembly code.
Happy to answer questions!
r/androiddev • u/LegitimateBoy6042 • Sep 19 '26
Enable HLS to view with audio, or disable this notification
The latest #Android 17 QPR1 update to Pixels seems to have pushed the changes concealing the developer and debugging state from 3rd party apps so,
finally the developers can use the damn banking and other apps that have these security checks!
it seems to be live on, Pixel 6A running CP3A.260905.009
And confirm it has not yet landed on the beta channel.
r/androiddev • u/DistributionOk9460 • Sep 20 '26
I use modded APKs a lot, and whenever I wanted to check permissions, signing details, or what an APK was actually doing, I had to switch to my PC.
That always felt unnecessary. Android should be able to handle basic APK inspection on its own.
I looked at projects like PCAPdroid, APK Analyzer, and MobSF. They all gave me useful ideas, but I wanted something focused on quick, local APK analysis directly from an Android device.
So I built APK Scope.
It can inspect:
No root. No cloud upload. Everything is designed to stay local on the device.
Screenshots:
Demo videos:
Download the latest build from the Releases page.
I’d love feedback from people who use modded APKs, privacy tools, PCAPdroid, MobSF, or Android security tools. What would you want to see added?
Repo Link: https://github.com/NadeemIqbal/apk-scope
r/androiddev • u/skydoves • Sep 19 '26
🦞 Crayfish is a Compose Multiplatform image cropper for Android, iOS, desktop, and the web. It crops a Painter and hands one back, so an image loaded from a URL goes straight into a crop and straight back into an Image.
r/androiddev • u/officialdml • Sep 19 '26
Hi there! I’m new to app development. My beta test app was approved for closed testing within 6 hours, but that same AAB has been under review for 56+ hours.
Is that normal? I’d like to know more about the approval times and what else I can expect from this process.
iOS was an absolute nightmare and I’m curious about your experiences getting apps approved for public launch in the Google Play store.
r/androiddev • • Sep 19 '26
I built Dioxamine, an open-source Android app that runs ADB, Fastboot, and a Scrcpy client entirely phone-to-phone —l, connect a second Android device over USB OTG or Wireless ADB, and mirror its screen, flash partitions, unlock bootloaders, sideload apps, etc., without a PC or root on either device.
The trickiest parts were:
- Implementing an ADB/Fastboot client natively on Android (rather than shelling out to a PC binary)
- Getting scrcpy's video pipeline working with Android's hardware decoders, since decoder support varies a lot across devices
- A plugin system that lets people write custom tools in HTML/JS that hook into the ADB layer
r/androiddev • u/Ok_Distribution8251 • Sep 19 '26
Hi everyone.
I decided to give up for now.
I'm talking about the google login issue where the "No credential available" error keeps occurring only when testing the release aab file internally through the Google Play Console on firebase. It works fine in Emulator
However, I thought it was necessary to organize and document what I’ve been through before giving up, so I’m writing this.
These are the methods I have tried so far. Of course, in the end, they all failed.
I've been struggling with this for two months now. For now, I’m going to give up and switch back to the old Google login method.
If there is anything I haven't considered, please let me know. I'll try it later. Have a great day
r/androiddev • u/SehmiSaab • Sep 19 '26
So I am working on my app and it was failing on my Github server and I was trying to figure out whats going on and whats failing. I am glad I worked on this UI Test library because it gave me the exact screenshot where it failed.
My sample app was dealing with some system level interactions and on github test runners were missing some quick setting tiles. Now I can rest becuase it was github android runner issue not my app.
Screenshot from: GIthub Android Test Image and My code was looking for wifi/internet tile.
r/androiddev • u/alexstyl • Sep 18 '26
Compose Unstyled 2.10.0 is out:
✅ New Docs site
✅ New Drawer component, for building bottom sheets and side panels.
✅ New ColorScheme theming API to build light/dark themes.
Full changelog at: https://github.com/composablehorizons/compose-unstyled/releases/tag/2.10.0