r/androiddev • u/Bubbly_Tough_284 • 25d ago
Question How can I emulate Android 2.3.7 on android studio
I want to emulate Android 2.3.7 on android studio but they do not have a option for phones that far back so is there any way I can do this?
r/androiddev • u/Bubbly_Tough_284 • 25d ago
I want to emulate Android 2.3.7 on android studio but they do not have a option for phones that far back so is there any way I can do this?
r/androiddev • u/Technical-Spread-368 • 26d ago
I’m not asking out of curiosity - I’m trying to understand if there’s a viable solution to a problem I’ve come across whilst working on a mobile app for a local start-up.
The scenario:
A company creates a native mobile application for one platform (say Android). At some point they’ll want to create another version for iOS (or vice-versa).
An option would be to bring in a separate team to develop and maintain the app. However, this can get quite costly, especially for a start-up and small dev team. Especially if the native app has a lot of features.
I’ve been thinking about creating an AI powered engine to help.
This would:
Identify which sections of code and business logic can be reused from an existing native app. Generate or modify the native specific sections whilst maintaining functionality and ensuring the native UI/UX is respected. Assist with the maintenance of both versions, with new features being added.
It would involve AI, but wouldn’t be entirely.
Before I spend any time developing this, I’d like to know how devs have overcome this.
If you’ve ever done this:
Have you ever had to port an existing native android application to iOS (or vice-versa)? What was the hardest part? What tools did you use? What was missing? What would a tool need to do to save you time and make you want to pay for it?
I’d love to hear about your experiences, even if you’ve tried and failed!
Thanks for sharing your experience!
r/androiddev • u/koje1971 • 27d ago
I tested today the app's memory usage. Never more than 8-12 MB, even after going through several levels. It should also run well on older devices, very satisfied 🙂
The stutters in the video are due to the PC, the app itself runs fine.
r/androiddev • u/Outrageous_Idea_1990 • 27d ago
I’ve been developing Android apps since 2012, and sometimes I wonder how many times I’ve had to start over with this ecosystem.
Every 3–4 years, it feels like something major changes. Eclipse to Android Studio, Java to Kotlin, XML to Compose, different architecture patterns, libraries becoming obsolete, and Google constantly changing what’s recommended.
Don’t get me wrong, a lot of these changes have made Android development better. But after spending years mastering something, it can be frustrating to see it slowly become outdated.
What bothers me isn’t learning new things. I actually enjoy that part. It’s the constant feeling that you need to keep up with everything just to stay relevant.
Last year, I decided to shift my career more towards software architecture and technical leadership. I still enjoy coding, especially Android, but I wanted to spend more time designing systems, solving larger engineering problems, and making technical decisions rather than constantly chasing the next framework.
Sometimes I miss the old days when I could just sit down, build an app, and not worry too much about whether the recommended way of doing it would change in two years.
Curious if anyone else who’s been developing Android apps for 10+ years feels the same.
Has anyone here moved from Android development into architecture, backend, engineering leadership, or something completely different? Do you miss being a full-time Android developer, or are you happy you made the switch?
r/androiddev • u/alexstyl • 27d ago
I am building a LOT of iOS/Android apps with Compose lately, and it annoyed me how I had to style system bars on Android only and juggle with expect/actuals for this.
So I made my own API for setting the icon color of system bars for both Android and iOS.
r/androiddev • u/Hejdare • 27d ago
I just saw that I'm in violation of the policy and have no idea how to update it. I thought I had updated it but I guess now. My app also doesn't use it as far as I know
r/androiddev • u/Downtown-Practice152 • 27d ago
This is my first Android Studio plugin, and I'm pretty excited to share it here. It's called IconFontViewer.
I wrote it because I wanted to see the actual icon next to R.string.icon_home while reading Android code.
It renders the glyph in the editor gutter for Kotlin and Java references, XML layouts and strings.xml. Clicking it opens a searchable icon picker. Choosing another icon replaces the reference at that position.
It finds TTF files in the project and library dependencies, including AARs, JARs and nested archives. Fonts don't need to be in a directory named fonts. Under Tools → IconFontViewer, you can enable or disable fonts, add a TTF manually, or rescan the project.
It's free and open source (Apache 2.0). Supports Android Studio 2024.1 or newer; TTF files only.
Source: https://github.com/ultimateHandsomeBoy666/IconFontViewer Marketplace: https://plugins.jetbrains.com/plugin/31478-iconfontviewer
r/androiddev • u/shivaansh1323456 • 27d ago
Hey everyone,
I’ve been working on a serverless media architecture that bridges local storage with cloud streaming. Since I'm not using a dedicated REST API backend, it introduced some unique engineering hurdles with Media3 and Jetpack Compose. I wanted to share how I solved them and see how the community handles similar edge cases.
1. Handling Media3 Background Network Noise (Crashlytics Spam) Because the player operates in the background, the OS frequently drops network sockets to save battery, or the user hits a dead zone. This was flooding Firebase with non-fatal ExoPlaybackException errors (specifically java.io.EOFException from Mp4Extractor).
Instead of letting it crash, I built an interception engine inside the Player.Listener. It aggressively scans the stack trace to silently invalidate the cache and auto-recover without reporting to Crashlytics:
Kotlin
override fun onPlayerError(error: PlaybackException) {
val errorString = error.stackTraceToString()
val isRecoverable = error.errorCode == PlaybackException.ERROR_CODE_IO_NETWORK_CONNECTION_FAILED ||
errorString.contains("EOFException") ||
errorString.contains("UnknownHostException")
if (isRecoverable) {
// Silently invalidate cache and trigger auto-recovery logic
attemptJitRetryAndRecovery()
} else {
CrashTracker.recordException(error)
}
}How do you guys handle ExoPlayer background noise? Do you use a similar filter, or rely on Media3's default LoadErrorHandlingPolicy?
2. True Glassmorphism in Compose Achieving an Apple-style frosted glass look in Compose is notoriously tricky. Originally, I used a Surface with a translucent white alpha, but it looked muddy and text bled through.
I found that stripping out Surface (and its baked-in tonal elevation) in favor of a tightly wrapped Box with a Brush.linearGradient works infinitely better:
Kotlin
Box(
modifier = Modifier
.clip(RoundedCornerShape(32.dp))
.background(
Brush.linearGradient(
colors = listOf(Color.White.copy(alpha = 0.22f), Color.White.copy(alpha = 0.08f))
)
)
.border(1.dp, Color.White.copy(alpha = 0.25f), RoundedCornerShape(32.dp))
) { // Content }Has anyone experimented with the Haze library for real-time background blurring instead of static gradients?
3. Client-Side JIT Resolution To keep it serverless, I built a custom JIT resolver. It intercepts track queries, resolves the direct audio stream on the client using Retrofit/Coroutines, and passes the URI to Media3 on the fly.
I'd love to hear your thoughts on this architecture, especially if you've dealt with Media3 session management! (I can share the repo link in the comments if anyone wants to see the full implementation).
r/androiddev • u/ClassKlutzy7633 • 27d ago
I'm a student building a calculator-style Android app in Kotlin, where most of the logic is pure functions: a few inputs, some unit conversions, one numeric result, often with clamps or caps (for example "use the lower of X or a maximum value").
Right now each formula has a test file with a handful of worked examples taken from the original papers, plus a few edge cases (zero, very large values, unit switches). It works, but it's getting repetitive with dozens of formulas.
For people who've tested this kind of code:
- Do you use parameterised tests (JUnit 5 / kotest data-driven tests) or keep plain JUnit 4 with tables of cases?
- Is property-based testing worth it here, e.g. "dose never exceeds the cap" or "result increases with weight"?
- How do you handle floating-point tolerance and rounding consistently across many calculators?
Any patterns or libraries you'd recommend would help.
r/androiddev • u/shubham0204_dev • 27d ago
Hi! I'm Shubham, creator of SmolChat.
I would like to share some exciting updates on my project SmolChat, an Android app that let's you run GGUF models on-device, locally. The updates are present in the latest v17 release:
GitHub: https://github.com/shubham0204/SmolChat-Android
Play Store (the latest version is still in review): https://play.google.com/store/apps/details?id=io.shubham0204.smollmandroid&hl=en_IN
Previous threads on SmolChat on r/LocalLLaMa:
r/androiddev • u/Adamstrad • 28d ago
r/androiddev • u/dark_devil307 • 28d ago
I’m learning Android with Kotlin and Compose. I found a few old threads (4-6 years ago) debating StateFlow vs LiveData but a lot has changed since then. My understanding is that new Compose projects mostly use StateFlow and LiveData shows up in older View-based apps. Is that still the case today? And is it worth a beginner learning LiveData at all or just knowing it exists? and I want to know what you use now.
r/androiddev • u/Wide_Sail7621 • 28d ago
A free, open source player for the videos in your own Telegram chats. The hard parts were low-end TV sticks, playback stutter and sharing UI across form factors. Happy to go into any of it. github.com/dracu-lah/TMPlayer
r/androiddev • u/SuryaVardhan1 • 28d ago
I added music source separation (drums / bass / vocals / other) to my open-source DJ app and wanted to share what worked:
• Export: htdemucs to ONNX with the STFT/iSTFT kept out of the model, done in Kotlin instead. ONNX's STFT ops were the main export pain.
• Memory: the full-length model got killed by the low-memory killer. 3.9 s chunks, setCPUArenaAllocator(false) and setMemoryPatternOptimization(false) kept it stable.
• NNAPI made it worse on my device; 4 CPU threads ran at about 2× real time on a mid-range Moto G64.
• Scheduling: separate only the windows the next mix needs, ordered by deadline, and fall back to EQ when a window isn't ready, so playback never waits.
• Alignment: cross-correlation between the live deck and the stem window, coarse then fine, to line the stems up within a few ms.
Code is GPL-3.0 (link in the comments). Happy to answer questions on any of it.
r/androiddev • u/Ok_Passenger_8768 • 28d ago
I’m caught in a Google Play Console verification deadlock, and frontline support is actively making it worse. Since JULY.
My developer account got flagged with the standard verification restriction. When I tried to fix it, I hit the unhelpful "Appeal reply sent" banner, which blocked all input.
I diagnosed the root cause: My Play Developer account was mistakenly mapped to my Individual Google Payments Profile instead of my LLC's verified Organization Payments Profile, creating a conflict with my corporate D-U-N-S.
I escalated this directly to Support, provided the exact Org Profile ID they needed to re-map it to, along with my entity paperwork.
The response? An agent literally named "Maeonnaise" closed the ticket today with a canned script saying they couldn't verify my ID and "no additional actions required from my end," completely ignoring the explicit request for a Payments Profile re-link.
Has anyone found a backdoor or a specific escalation phrase to get a human engineer to actually re-map a Play Console account to a different Payments Profile? I can't finish verification until this backend link is fixed. At this point, getting brushed off by a sentient jar of mayonnaise is just insulting.
I really appreciate your help, and I'd be glad to buy you a digital coffee for a solution!
Thank you,
C
r/androiddev • u/ProblemQ • 28d ago
How do you test app screens navigation flow?
Any tool or solution to simulate it that I should know?
I'm stuck with Android Studio as it crashes all the time.
Can anyone advise to a non-developer on this part?
Thank you
r/androiddev • u/Infamous_Sorbet4021 • Oct 30 '26
Google released AppState and it looks like a cleaner way to handle shared state than passing a SharedViewModel around. I never really liked SharedViewModel, felt like one screen ends up owning data other screens depend on it.
From what I get so far: StateStore is a shared observable value, MutableStateStore is the writable one, AppState owns the lifecycle, and transform lets you derive state automatically instead of syncing stuff by hand.
Curious what people think of the API so far.
Docs: https://developer.android.com/topic/libraries/architecture/appstate
Video: https://youtu.be/69QYEXymfVo
Anyone planning to try it out?
r/androiddev • u/Informal-Addendum435 • 29d ago
If my phone restarts, I have to 1. connect it to a wifi network (I'm almost never on or near wifi), 2. go into settings and turn on wireless debugging 3. re-pair all my dev machines to its new port
How can I make this less painful?
r/androiddev • u/ClassKlutzy7633 • 29d ago
I'm building a small calculator-style app in Jetpack Compose. Each row has a label, a numeric OutlinedTextField and a unit dropdown. On narrower phones the text field collapsed to about one character wide, because the label and dropdown took their full intrinsic width first.
Giving the field Modifier.weight(1f) and the label a fixed or weighted width fixed most of it, but I'm not sure that's the cleanest pattern, especially with large font scaling turned on.
How do you usually handle form rows like this in Compose? Do you switch to a stacked layout below a certain width, use FlowRow, or something else?
r/androiddev • u/Smart-Peach-287 • 29d ago
I've been building Agent-DDP (Device DevTools Protocol), an open-source DevTools protocol that gives AI coding agents deep visibility into native iOS and Android applications.
The inspiration is the Chrome DevTools Protocol (CDP): browser agents can inspect the DOM, styles, rendering and runtime behavior. Native mobile agents have traditionally had much more limited visibility, often relying on screenshots and accessibility trees.
Agent-DDP aims to close that gap.
It instruments the app in Debug builds, allowing agents to inspect and interact with the application through its native rendering and runtime systems.
Some of what it can do:
It also includes a 15-minute runtime history that records UI changes, frames, interactions and screen transitions, making it possible to investigate issues that happened before an agent started looking.
The architecture is designed for coding agents: a native instrumentation library, a CLI, structured output and an MCP server. It works with Claude Code, Codex, Cursor and other agents that can run CLI commands or connect through MCP.
Supported frameworks:
The instrumentation is Debug-only and does not ship in Release builds.
Install:
npm i -g agent-ddp
The project is open source under the MIT license.
I'd appreciate feedback, especially from people working on native mobile development, UI automation, developer tooling or coding-agent infrastructure.
r/androiddev
•
u/jfffj
•
Oct 30 '26
(Please let me know if this is not the correct place for this. Suggestions as to what is the right place are appreciated.)
I maintain a legacy app for my company, and I'm not what you'd call an expert. As part of the Android 17 (API 37) updates, I'm trying to figure out if our app requires the ACCESS_LOCAL_NETWORK permission. Here's some links:
Main documentation:
https://developer.android.com/privacy-and-security/local-network-permission
These restrictions are implemented deep in the networking stack, and thus they apply to all networking APIs. This includes sockets created in the platform or managed code, networking libraries like Cronet and OkHttp, and any APIs implemented on top of those. Trying to resolve services on the local network that have a .local suffix requires local network permission.
Policy announcement:
https://support.google.com/googleplay/android-developer/answer/18100766
This permission is restricted to apps that need it for core functionality when device pickers are insufficient. Apps targeting Android 17 or higher (API 37+) must submit a Play Console declaration to use this permission.
FAQ on policy declaration and allowed use-cases:
Our app uses OkHttp to connect to a bog-standard REST API, sometimes hosted on the local network (LAN), sometimes on cloud servers (internet). These connections are super-simple, we send messages (with data), get replies (with data).
I don't have access to Android 17 hardware, so I'm testing with an Android Studio emulated device, running API 37.2.
I have questions:
Trying to resolve services on the local network that have a .local suffix requires local network permission.
2) We actually have a published version of the app live on the Play Store which has this in the manifest:
<uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" /> The above links suggest that we need to complete a policy declaration. I've looked around in the console and can't find anything that asks for this. The Policy Status pages have nothing outstanding. All seems fine.
3) I wonder if our app would qualify for one of the use-cases listed by Google (3rd link). LAN (and Internet) connectivity is very much an integral part of the app, but doesn't seem to fit into their list. I'd ask, but since I can't find a way to complete a policy declaration, then that doesn't appear to be an option.
What's going on here?
r/androiddev • u/dark_devil307 • Oct 30 '26
I ran into the rotation bug where my app resets every time I turn the phone. From what I understand Android recreates the Activity on rotation so normal variables lose their values. I’ve read that ViewModel survives rotation so I’ve been putting my screen state there. I also found rememberSaveable, which apparently survives rotation and even the app getting killed in the background. Is that right? Also what do you actually do in real projects? Do you keep almost everything in the ViewModel or do you use rememberSaveable and SavedStateHandle for some things too? Would love to hear what works for you.
r/androiddev
•
u/Unreal_NeoX
•
Oct 30 '26
Source: Google Play Developer Program Policy Update
| DEVELOPER UPDATE |
|---|
| Hello Google Play Developer, |
| As part of our commitment to maintaining security and transparency on Google Play, we're sharing our latest round of policy updates. |
| How does this affect my apps? This is a mandatory service announcement sent to all Google Play developers. To save you time we've provided the executive summary below. You only need to click through to the full policies if your app uses these specific features. To view a log of your recent updates and monitor each app's submission activity, please check the submission activity in your Google Play Console. If applicable, you have at least 30 days from today to update your app. See our Policy Deadlines for specific timelines. |
| Summary of changes: |
| New policies |
| Local Network Permission: This permission is restricted to apps that need it for core functionality when device pickers are insufficient. Apps targeting Android 17 or higher (API 37+) must submit a Play Console declaration to use this permission.Manage Contacts Permission: This permission is restricted to apps that need it for core functionality when system pickers are insufficient and apps must submit a Play Console declaration to use it. All other apps must use narrowly scoped platform intents.AppFunctions API: Developers building AppFunctions must comply with all existing Google Play policies. AppFunctions are strictly prohibited from deceiving or manipulating AI agents, bypassing security controls, or interfering with other applications. |
| Updated policy |
| Subscriptions with ongoing eligibility-based discounts: Subscriptions with ongoing eligibility-based discounts, such as student plans, must clearly disclose eligibility criteria, the verification process, and post-eligibility pricing and benefit changes. |
| Clarifications (Our enforcement standards and practices remain the same) |
| Permissions and APIs that Access Sensitive InformationDeceptive Behavior: Clarified that developers and apps cannot engage in behaviors that manipulate the app review process.Families Self-Certified Ads SDK Program: New applicants can now join this program. Review the list of participating SDKs and self-certified versions in the Help Center and in SDK index.Cryptocurrency: Expanded Hong Kong licensing requirements to include the Virtual Asset Trading Platform license, and introduced an "Additional Options" section for apps qualifying for local regulatory exemptions.Use of SMS or Call Log permission groupsPayments: We're providing additional guidance on how our Payments policy applies to Google Play apps that facilitate digital purchases through AI or agentic experiences.Location permission: As a reminder, this policy was announced last April and will become mandatory on January 27, 2027. To help you be prepared, we've clarified and added helpful information to the upcoming policy. Apps must use the minimum location scope necessary for its core functionality. For apps targeting Android 17 (API 37+), this includes mandatory use of the Android location button for one-time or infrequent location requests. Apps using ACCESS_FINE_LOCATION must complete a Play Console declaration to justify why coarse location or the location button is insufficient.Added an exception allowing Government or Authorized Mobile Network Operator apps to use the READ_CALL_LOG permission for Quality of Service reporting and clarified that apps utilizing the backup and restore exception must demonstrate the ability to restore data back to the device’s default handler. All Files Access Permission: We've reiterated minimum scope principles to support developer comprehension of the use of the MANAGE_EXTERNAL_STORAGE permission.AccessibilityAPI: Clarified the policy summary on the isAccessibilityTool flag usage and disclosure requirements based on app designation.Added the SMS User Consent API as a privacy-preserving alternative for account verification. As a reminder, on January 27, 2027, account verification via phone call will no longer be a permitted use case for the READ_CALL_LOG permission and you must use an alternative API instead. |
| Reminders and additional information |
| We're launching Play Age Signals, a new privacy-friendly, age-appropriate experience for families that will be available globally to all developers. Use The Play Age Signals API to tailor features, content, and safety settings to your audience. If you sell into or out of Japan, you must complete authorization by December 1st, 2026, or your payments will be held globally. Find out if this requirement applies to you and learn how to complete the authorization form. Starting in November 2026, you must declare your trader status in Play Console in accordance with new Console requirements. As recently announced, the games category has graduated from beta to general availability. All developers who want to build games for cars can now publish to the open testing and production tracks on Google Play for these form factors. We recently announced a February 2027 compliance deadline for new app quality requirements regarding memory and code optimization thresholds. Please review these requirements to maintain your app's visibility and publishing capabilities on Google Play. We have updated our Android XR app quality guidelines for Immersive and Augmented experiences. Please review these guidelines if you are building apps for XR headsets, Wired XR Glasses, or Audio & Display Glasses. |
| To learn more about complying with these changes, read our full Policy Center announcement, watch our PolicyBytes video, or submit your questions in advance to our Policy Webinar. |
r/androiddev • u/FalconGood4891 • Oct 30 '26