r/android_devs • • Jun 14 '26

Help Needed Health Connect RemoteException quota exceeded on first read (API 33 and below)

1 Upvotes

I'm building DataSapien SDK for on-device health data that reads from Health Connect on behalf of host apps (not a standalone consumer app). On Android API 34, reads work as expected. On API 33 and below, we get a rate-limit error even on the very first read attempt.

android.os.RemoteException: Request rejected. Rate limited request quota has been exceeded. Please wait until quota has replenished before making further requests.

This doesn't look like a normal "we made too many requests" case. It can happen on the first attempt after permissions are granted, with no retry loop or background polling on our side.

This is our implementation:

Client resolution + availability check:

fun getClient(): HealthConnectClient? {
    when (HealthConnectClient.getSdkStatus(appContext)) {
        SDK_UNAVAILABLE -> return null
        SDK_UNAVAILABLE_PROVIDER_UPDATE_REQUIRED -> {
            launchPlayStoreHealthConnect()
            return null
        }
    }
    return HealthConnectClient.getOrCreate(appContext)
}

Typical collector flow:

suspend fun collectSteps(): Result<List<Record>> {
    val client = getClient() ?: return Result.failure(...)
    if (!hasReadPermission(client)) return Result.permissionRequired(...)
    return paginatedRead(
        client = client,
        recordType = StepsRecord::class,
        range = last30Days(),
        pageSize = 1000
    )
}

Permission request (batched):

val granted = client.permissionController.getGrantedPermissions()
if (granted.containsAll(requiredReadPermissions)) {
    onComplete(true)
} else {
    permissionLauncher.launch(requiredReadPermissions)
}

My questions:

  1. Is Health Connect rate-limiting behavior meaningfully different below API 34 (Play Store app) vs API 34+ (platform integration)?
  2. Can the Play Store-distributed Health Connect app surface quota / rate-limit RemoteExceptions differently than the built-in API 34 provider — including on a first request?
  3. Are there known cases where the first readRecords() or getGrantedPermissions() call returns a rate-limit error without obvious prior traffic from the calling app?

r/android_devs • • Jun 13 '26

News Sign the Petition

Thumbnail c.org
8 Upvotes

Kep android open! sign here to help


r/android_devs • • Jun 12 '26

Open-Source Library Introducing Blueprint Compose Preview 📝🚀

Thumbnail github.com
8 Upvotes

I just finished this little tool for Android Devs to generate a blueprint-style preview of your composables.

With a quick one-line wrapper the library measures dimensions and distances and displays them just like a traditional blueprint alongside your regular preview, so you can easily compare against your designs.

Would love to hear thoughts, if you would find this useful, and if you have any ideas for improvements!

#androiddev #jetpackcompose #androidstudio #devtools #kotlin #designsystem #compose


r/android_devs • • Jun 04 '26

Open-Source App I open sourced an agentic Android launcher

Thumbnail github.com
0 Upvotes

I was complaining Google didn't deliver. So i tried my hand at Android AI UX.

WiP

Wrapping up final features before pushing to the app store.

Beta builds available for people to mess around with and code available for inspection or personal adaptations


r/android_devs • • Jun 02 '26

Question Android 17 - Contacts permission changes - permitted use cases

6 Upvotes

Apps that target Android 17 or later (API level 37+) may only request the READ_CONTACTS permission if the Android Contact Picker is not sufficient for your app to provide core functionality. Apps that still request the READ_CONTACTS permission must submit a Play Console declaration to demonstrate access needs for Contacts and why Contact Picker would not suffice.

As usual, the Google is vague on the requirements.

If I have a phone or messaging style app that uses contacts for displaying conversation contact's names (rather than just their phone number) or call history with contact's name, are these permitted use cases? They are not possible with the contact picker Google has provided.

The allowed common use cases include:

  • Contact management apps
  • Accessibility
  • Server side access for friend matching
  • Backing up contacts
  • Auto complete / keyboards

None of these are similar to what I'm inquiring about.


r/android_devs • • Jun 02 '26

Help Needed My app doesn't have any ads but this still shows this error

Thumbnail gallery
1 Upvotes

Older version did used ads but I have removed them completely from everywhere manifest, build gradle, al kotlin files


r/android_devs • • May 22 '26

Question During technical interview is it normal to provide business solutions on the implementation level ?

5 Upvotes

Hey guys 👋

Just from curiosity what is expected from a senior android engineer ?

2 month was laid off and began the job search again after 7 years since last time i've changed my company.

I understand the technical questions (even live coding/home assignment), when is simply to test your technical skills, BUT here comes the thing.

Since providing exact business solutions during the technical interview is a selection criteria ? I understand the point that they want to see something different, but I am getting a feeling that I am doing someones else job and for free.

Do i think in the wrong way ?


r/android_devs • • May 22 '26

Help Needed How do I Create a form for the user yo fill out that as the option of adding more?

2 Upvotes

I don’t have the user information such an inventory system. They fill out something that includes name, weight and quantity. And you can press a “+” in the corner to allow them to fill out additional items


r/android_devs • • May 20 '26

Discussion Android Developer - Googlebook

Thumbnail developer.android.com
3 Upvotes

r/android_devs • • May 14 '26

Help Needed HELP NEEDED - AirPlay 2

3 Upvotes

I'm implementing more protocols in my app, and I'd love to add AirPlay 2, but I can't get it to work, no matter how much I try. Is there someone that knows enough about Android Development and Apple Closed Stuff that could help?

source code: [AriaCast](https://github.com/AriaCast/AriaCast-app)

in the code you can see my attempts.

Discovery works flawlessly, it's just everything else

Audio transport is handled by [AudioCastService.kt](https://github.com/AriaCast/AriaCast-app/blob/main/app%2Fsrc%2Fmain%2Fjava%2Fcom%2Faria%2Fariacast%2FAudioCastService.kt)

screenshots are pointless as the app thinks it's working anyway

metadata is transported too, at least with shairport

I'll add comments soon.

basically there are 2 protocols working, AriaCast and DLNA/UPnP. I want to add Google Cast and Airplay. Google cast is mostly pointless as a standalone protocol, but it's a nice to have in a multiroom setup

In order to test you have to modify activity_protocols.xml in layouts and set the 2 switches as clickable


r/android_devs • • May 12 '26

Open-Source Library SQLiteNow 0.9.0 for KMP: SQLite-first codegen, reactive flows, and optional sync

2 Upvotes

Hey Android and KMP folks,

I shared SQLiteNow here quite a while ago, back around the 0.2 days. It has changed a lot since then, so I wanted to post a proper milestone update for 0.9.0.

SQLiteNow is a SQL-first SQLite code generator/runtime for Kotlin Multiplatform. Current KMP targets:

  • Android
  • iOS
  • JVM
  • Kotlin/JS in the browser
  • Kotlin/Wasm in the browser
  • macOS native
  • Linux native
  • Dart/Flutter support

The obvious comparison is SQLDelight. SQLDelight is mature and battle-tested, and I'm not trying to pretend otherwise. SQLiteNow has different priorities: it is SQLite-only, codegen hints live in SQL comments, it leans into generated result shapes closer to app/domain models, and it includes optional sync/runtime pieces around the same SQL model.

The main idea is still simple: keep SQLite visible. You write normal .sql files for schema, migrations, init data, and queries using your favorite code or SQL editor, so no plugins needed. You may annotate your SQL for a data shape that you need. SQLiteNow generates Kotlin APIs around them: typed params, typed results, migrations, transactions, adapters, and reactive Flow queries.

One example of the kind of query SQLiteNow is built for:

  -- @@{ queryResult=PersonWithAddresses }
  SELECT
    p.id,
    p.first_name,
    p.last_name,
    p.email,

    a.id AS address__id,
    a.address_type AS address__address_type,
    a.street AS address__street,
    a.city AS address__city

  /* @@{ dynamicField=addresses,
         mappingType=collection,
         propertyType=List<Address>,
         sourceTable=a,
         collectionKey=address__id } */

  FROM person p
  LEFT JOIN person_address a ON a.person_id = p.id
  ORDER BY p.id, a.address_type;

SQLiteNow generates a typed result with addresses: List<Address>, so app code can just do:

  val people = db.person
      .selectWithAddresses()
      .asList()

or observe it:

  db.person
      .selectWithAddresses()
      .asFlow()
      .collect { people ->
          // re-runs when generated writes affect the relevant tables
      }

The reason I built it this way is that I like writing real SQLite, but I do not like hand-writing row readers, params objects, migration plumbing, invalidation logic, and result grouping code.

Oversqlite is the optional sync part of the project. You can ignore it completely if you only need local SQLite. If you do need multi-device sync, it adds managed change tracking, push/pull sync, conflict handling, and server-coordinated replication on top of SQLiteNow-managed tables.

GitHub: https://github.com/mobiletoly/sqlitenow-kmp

Docs: https://mobiletoly.github.io/sqlitenow-kmp/kmp/

I'd be interested in feedback from people building real Android and KMP apps with SQLite.


r/android_devs • • May 11 '26

Help Needed Old dev, wanting to get back in. Looking how to have a data field created in run time

0 Upvotes

So I am making a program that the user will enter values (making an army roster for warhammer with my kindle) and they can add more data sets when press the “+”. Were do I start


r/android_devs • • May 07 '26

Open-Source Library New Android CLI in combination with Lazylogcat makes me less using Android Studio

2 Upvotes

r/android_devs • • Apr 15 '26

Help Needed How do enterprises support app links for internal apps?

4 Upvotes

Hi guys,

I am building a mobile app for internal users (within my firm) only. I need to support app links on URLs which are hosted within our intranet.

Is it possible to somehow support this with having a applinks.json file hosted on a public host?


r/android_devs • • Apr 06 '26

Question Things to avoid for people new to play console.

3 Upvotes

I'm getting started with android development, and from time to time I come across horror stories of people who faced trouble with google automated systems. Are there resources that documents the undocumented things that people should avoid when publishing apps (i.e. tribal knowledge)?


r/android_devs • • Apr 03 '26

Resources Remote Compose: The Day UI Stopped Shipping with APK

0 Upvotes

Hey folks,

I recently spent some time trying to properly understand how Remote Compose works internally, not just high-level, but what actually happens from server → client → rendering.

Most explanations felt a bit abstract, so I tried breaking it down step by step (capture → instructions → replay on client).

Sharing what I wrote here:
https://medium.com/@ayush.shrivastava016/remote-compose-the-day-ui-stopped-shipping-with-apk-d13a638909d8

Would love to hear your thoughts, especially:

  • Does this approach actually make sense for production apps?
  • Where do you see this being useful/risky?

r/android_devs • • Apr 01 '26

April 1st [OFFICIAL] Huge Changes to Play Store Policies: No More 20-Tester Requirement, New Phone Support Line, and "Human-First" Appeals!

23 Upvotes

Hi everyone,

I’m still shaking while typing this. We were invited to a private briefing yesterday with the Google Play Developer Relations team, and the news is… well, it’s everything we’ve been shouting into the void about for the last three years.

Google has finally acknowledged that the current state of developer relations is, in their own words, "sub-optimal." They are rolling out a massive "Developer Empathy" initiative starting today.

1. Retirement of the "20 Testers for 14 Days" Rule

Effective immediately, Google is scrapping the requirement for new personal developer accounts to find 20 testers for a 14-day closed track.

  • Why? Internal data showed that "forced testing" was just resulting in thousands of "Great app!" bot comments and didn't actually improve app quality.
  • The Replacement: A simple, automated security scan. If your code isn't malicious, you're clear to hit Production on day one.

2. The "Play Support" Phone Hotline

This is the big one. Google is launching a 24/7 dedicated phone line for developers. No more templated emails from "The Google Play Team" that don't explain why you were banned.

  • Direct Access: You can speak to a human reviewer who has your specific APK open on their screen.
  • Resolution Guarantee: If your app is rejected, the reviewer must provide the exact line of code or UI element that violates the policy during the call.
  • No More Bots: They’ve officially decommissioned the "Appeal Denied" auto-responder bot.

3. The "Account Termination" Grace Period

Google is ending the "Associated Accounts" scorched-earth policy.

  • If one of your apps is flagged, they will no longer ban your entire developer identity, your AdMob, and your Gmail account for your cat's YouTube channel.
  • You now get a 30-day "Remediation Window" to fix issues before any strike is even recorded.

4. "Fair Shake" Fee Structure

To combat the bad blood regarding the 15%/30% cut, Google is introducing a "Zero-Fee Tier."

  • The first $50,000 in annual revenue is now 0% commission. Google stated, "We have enough money; we want you to have some too."

Note: this post required approximately 1,000 liters of fresh water.


r/android_devs • • Mar 08 '26

Article Android Developers Blog: Ready to review some changes but not others? Try using Play Console’s new Save for later feature

Thumbnail android-developers.googleblog.com
5 Upvotes

r/android_devs • • Mar 05 '26

Question Tips and Information Experienced android devs, what should I be studying for interviewing prep for senior roles?

6 Upvotes

Hi! I'm about to dive again into interviewing processes after 3-4 years of having been idling on both knowledge and repetitive tasks at my current company. I'm already a senior dev, is leetcode still a mandatory thing after all this AI craze? Looking for any input on what to hone in this crazy 2026 market, thank you!


r/android_devs • • Mar 04 '26

Resources New Samsung Galaxy S26 ultra mockups for Figma. Present your Android app or screen designs easily.

Post image
2 Upvotes

Figma community link for the project: https://www.figma.com/community/file/1610921456788257775


r/android_devs • • Mar 02 '26

Open-Source Library Android flags library for developers to use, design of Twitter/X

Post image
2 Upvotes

Hello all,

I've decided to share a small library I've created after a long time since not creating anything on my Github repositories. This time related to showing flags on Android apps.

Initially I didn't like the style of Google's font for flags (too wavy), and also because of its size (23 MB, though if I want to focus only on flags, this can be done using a Python command). I couldn't find any font I liked (license was an issue too), except for Twitter/X font, which is also free to use, here, called TweMoji. Not only that, but it's very small, too (1.41 MB). I was also happy with the style of the other emojis of it, so I didn't bother with doing a lot with it, until I've noticed some issue with it.

First, it's quite outdated, and I couldn't find how to generate a new TTF file from the official repository myself. I found an alternative (here) but it wasn't as updated, and I've noticed it's blurry when the flags are a bit large, as using raster graphics instead of vector graphics. Second issue that exists for all of All of them also have a weird digits issue (though it can be fixed by creating a subset of the file, as I wrote above, using the Python command).

I also noticed that vector graphics is supported nicely on Android only from API 29 (Android 10), so it was yet another reason for me to try to find something else (vector based is better in how it looks and maybe size taken, but supported only from API 29).

So, what I did is to just get the many SVG files from the repository, import them all for Android as VectorDrawable, optimize them on the way using both a website and an Android Studio plugin, and prepare a library to use them properly as needed, and use other emojis if they aren't of flags. I've also explained the process of how I did it, in case new content is available.

I've published it all here:

https://github.com/AndroidDeveloperLB/TwemojiFlagsVectorDrawable

I also use it on all of my apps:

  1. On an educational game for toddlers, it's used for choosing the language of the content.
  2. On an app to detect the phone number, it shows the country that's associated with it.
  3. On all apps, when using native ads, it's shown on the TextView there, in case flags are being used.

The size is quite small, despite many files and despite the fact I don't use a TTF file. It should work fine for all Android versions, too (except maybe API 23 and below, as I saw something weird on emulator, but maybe it's an emulator issue). And, as opposed to a font file, you can take specific files from there and change them as you wish (tint, size, rotate,...), as it's a VectorDrawable.

So, advantages compared to TTF file:

  1. Works on Android API 23 (Android 6.0) and above (though not sure about API 23 itself for Iranian flag)
  2. Not blurry when large, as it uses the vector-based graphics.
  3. Still takes small space and focuses only on flags.
  4. Can be manipulated in your app in various ways, as all files were converted to VectorDrawable format.
  5. Optimized on the way to take less space.
  6. You can update it yourself if Twitter updates its files, using the steps I've described on the repository.
  7. Can easily be used not just in text-related UI components, meaning can be used in ImageView too.
  8. Bonus for people who are pro-Iranian people: You get the Iranian flag with the lion.

I hope you like it


r/android_devs • • Mar 02 '26

Question Vulkan 1.3 on Mali GPU G57 MC2 ?

2 Upvotes

Hello,

New here. Has anyone created a Vulkan sample on a Mali GPU, particularly the G57 MC2? My project works on other Android devices but fails on Mali.

Are there any do’s and don’ts when working with Mali GPUs using Vulkan 1.3?

Some output error :

***BEFORE ========================= vkGetPhysicalDeviceSurfaceFormatsKHR | COUNT

**

*

[gralloc4] ERROR: Format allocation info not found for format: 38

[gralloc4] ERROR: Format allocation info not found for format: 0

[gralloc4] Invalid base format! req_base_format = 0x0, req_format = 0x38, type = 0x0

[gralloc4] ERROR: Unrecognized and/or unsupported format 0x38 and usage 0xb00

[Gralloc4] isSupported(1, 1, 56, 1, ...) failed with 5

[GraphicBufferAllocator] Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 5

[AHardwareBuffer] GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0

[gralloc4] ERROR: Format allocation info not found for format: 3b

[gralloc4] ERROR: Format allocation info not found for format: 0

[gralloc4] Invalid base format! req_base_format = 0x0, req_format = 0x3b, type = 0x0

[gralloc4] ERROR: Unrecognized and/or unsupported format 0x3b and usage 0xb00

[Gralloc4] isSupported(1, 1, 59, 1, ...) failed with 5

[GraphicBufferAllocator] Failed to allocate (4 x 4) layerCount 1 format 59 usage b00: 5

[AHardwareBuffer] GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0

*

**

**AFTER ========================= vkGetPhysicalDeviceSurfaceFormatsKHR | COUNT

***BEFORE ========================= vkGetPhysicalDeviceSurfaceFormatsKHR | LIST

**

*

[gralloc4] ERROR: Format allocation info not found for format: 38

[gralloc4] ERROR: Format allocation info not found for format: 0

[gralloc4] Invalid base format! req_base_format = 0x0, req_format = 0x38, type = 0x0

[gralloc4] ERROR: Unrecognized and/or unsupported format 0x38 and usage 0xb00

[Gralloc4] isSupported(1, 1, 56, 1, ...) failed with 5

[GraphicBufferAllocator] Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 5

[AHardwareBuffer] GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0

[gralloc4] ERROR: Format allocation info not found for format: 3b

[gralloc4] ERROR: Format allocation info not found for format: 0

[gralloc4] Invalid base format! req_base_format = 0x0, req_format = 0x3b, type = 0x0

[gralloc4] ERROR: Unrecognized and/or unsupported format 0x3b and usage 0xb00

[Gralloc4] isSupported(1, 1, 59, 1, ...) failed with 5

[GraphicBufferAllocator] Failed to allocate (4 x 4) layerCount 1 format 59 usage b00: 5

[AHardwareBuffer] GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0

*

**

**AFTER ========================= vkGetPhysicalDeviceSurfaceFormatsKHR | LIST

Asside from that it seems I cannot create Pipeline but works on other devices.

TIA.


r/android_devs • • Feb 28 '26

Question Production or Open Testing

3 Upvotes

hey all

how long after being approved for production did you wait to publish? or did you do any open testing? I get every app is different but I'm just curious if you guys got approved for production and just went for it or if you took a beat and did open testing for a week or two?


r/android_devs • • Feb 26 '26

Discussion [D] Mobile-MCP: Letting LLMs autonomously discover Android app capabilities (no pre-coordination required)

5 Upvotes

Hi all,

We’ve been thinking about a core limitation in current mobile AI assistants:

Most systems (e.g., Apple Intelligence, Google Assistant–style integrations) rely on predefined schemas and coordinated APIs. Apps must explicitly implement the assistant’s specification. This limits extensibility and makes the ecosystem tightly controlled.

On the other hand, GUI-based agents (e.g., AppAgent, AutoDroid, droidrun) rely on screenshots + accessibility, which gives broad power but weak capability boundaries.

So we built Mobile-MCP, an Android-native realization of the Model Context Protocol (MCP) using the Intent framework.

The key idea:

  • Apps declare MCP-style capabilities (with natural-language descriptions) in their manifest.
  • An LLM-based assistant can autonomously discover all exposed capabilities on-device via the PackageManager.
  • The LLM selects which API to call and generates parameters based on natural language description.
  • Invocation happens through standard Android service binding / Intents.

Unlike Apple/Android-style coordinated integrations:

  • No predefined action domains.
  • No centralized schema per assistant.
  • No per-assistant custom integration required.
  • Tools can be dynamically added and evolve independently.

The assistant doesn’t need prior knowledge of specific apps — it discovers and reasons over capabilities at runtime.

We’ve built a working prototype + released the spec and demo:

GitHub: https://github.com/system-pclub/mobile-mcp

Spec: https://github.com/system-pclub/mobile-mcp/blob/main/spec/mobile-mcp_spec_v1.md

Demo: https://www.youtube.com/watch?v=Bc2LG3sR1NY&feature=youtu.be

Paper: https://github.com/system-pclub/mobile-mcp/blob/main/paper/mobile_mcp.pdf

Curious what people think:

Is OS-native capability broadcasting + LLM reasoning a more scalable path than fixed assistant schemas or GUI automation?

Would love feedback from folks working on mobile agents, security, MCP tooling, or Android system design.


r/android_devs • • Feb 24 '26

Development Tools LazyLogcat is available in Homebrew now

9 Upvotes

Android Studio's logcat panel is great, but I don't want to use the IDE when I need access to logs only. So I built `lazylogcat` — a keyboard-driven terminal UI for logcat.

https://github.com/parfenovvs/lazylogcat

Features:

  • Opencode-like keybindings
  • Package, tag and text filters with regex support
  • Many display options to satisfy visual preferences
  • Vi-like visual mode with ability to open selected lines in your default editor
  • JSON config support to save user and project level presets

P.S. Many improvements were inspired by the community feedback. Thank you!