Stay up-to-date with latest news on Android Development! Content directly fetched from the subreddit just for you. Powered by : @r_channels
Is there an efficient way to fetch buckets in MediaStore with count?
I'm trying to query all the buckets in external uri with their count from `contentResolver`.
I tried two approaches and both have big drawbacks.
## Approach 1:
* Use `contentResolver`'s query API with bundles to use `ContentResolver.QUERY_ARG_SORT_COLUMNS` and fetch the Bundles.
* Query each Bundle Id for the count of files in each bundle.
### Drawback in this
* Which I feel is inefficient due to querying in loop.
* required BuildVersion.R :(
```
....
val queryBundle = Bundle(...
https://redd.it/1jphs43
@reddit_androiddev
How do apps typically handle SDK's with OneTrust or consent management?
I'm integrating and setting up OneTrust for an app. OneTrust manages privacy and consent to help mobile apps comply with laws like GDPR, CCPA, and other regulations.
The process involves uploading the app bundle file, where it scans for SDK's the app uses, like Retrofit, Okhttp, Glide, Google, Exoplayer, among other libraries, then it categorizes each SDK into these groups: Strictly Necessary, Functional, Social Media, Performance, Targeting/Ads.
The idea is when a new user uses the app, a con...
https://redd.it/1jpael5
@reddit_androiddev
Weird Painter and .size Modifier interaction when repeating image components
I found a peculiar interaction between size Modifier and Painter and I couldn't really find any clues as to why this is observed.
You can find the below mentioned code snippets here.
In particular in the component found at file ComponentWithPainter
by checking the Preview and interacting with it, it eventually becomes apparent that the Image components seems to be drawn on each other (?) I am not really sure how to even ch...
https://redd.it/1jp0bkj
@reddit_androiddev
MBCompass: A modern featurish compose based compass app v4 released with location tracking feature
https://github.com/MubarakNative/MBCompass/
https://redd.it/1jos5k8
@reddit_androiddev
App rejected for Broken Functionality, but everything works fine
Hi everyone,
I'm in the process of publishing an app I made for my first serious client (big deal for me hahaha), but I'm having a lot of trouble with the publishing process, since the app keeps getting rejected for issues that I cannot reproduce.
The first rejection was due to the privacy policy, and that one made sense, so I solved it.
The following rejections were violations of the Broken Functionality policy, respectively:
* **App is not responding** (second rejection) Your app i...
https://redd.it/1jov941
@reddit_androiddev
Struggling with Device Manager
Hi all,once I want to choose a virtual device \(f. eg. Pixel 6\) I have the upcoming problem \(see screenshot\). I have win 11 home. Any advices? Thanks a lot in advance. :\(...
https://redd.it/1joqnni
@reddit_androiddev
Image asset is just grey!!
https://preview.redd.it/r19cdx97j4se1.png?width=1938&format=png&auto=webp&s=d96c744a04781f52a0c745afb848e515febb6b3a
Okay so the pic above is the problem I have. I am trying to make a new image asset to put on my Home Screen but no matter what EVERY PHOTO I TRY TO ADD LOLLL is just grey, like it's not there. As you can see I have the path to my image there but in the preview it is not there. I thought this was just a problem with the preview so I clicked next and finished to create it, and I c...
https://redd.it/1jojmas
@reddit_androiddev
Placing a red dot badge on a NavigationView MenuItem near the menu icon
To place a red dot badge on `NavigationView`'s `MenuItem`, this is what I have performed.
<!-- res/layout/badged_settings_menu.xml -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- This TextView will serve as the badge -->
<TextView
android:id="@+id/menu_badge"
android:layout_width="16dp"
android:layout_height="...
https://redd.it/1jogx8u
@reddit_androiddev
Google deleted the sample code for Play Billing Library
https://github.com/android/play-billing-samples
https://redd.it/1jof5m2
@reddit_androiddev
How to Publish Your App on F-Droid: A Beginner’s Guide with sharing my own experience when published my one of the app
https://mubaraknative.medium.com/how-to-publish-your-app-on-f-droid-a-beginners-guide-fadcfb384e4a
https://redd.it/1jo6chm
@reddit_androiddev
MacOS ADB won't stay connected to my phone for the life of me.
I'm going crazy here.
I updated Android and Studio and all platform tools SDKs to the latest (35).
I have two androids this is happening to both of them.
I restarted the computer about a dozen times. Restarting android phone(s) too.
I tried different ports in the mac and different wires.
It seems the phone shows up very intermittently. One second it'll show, then it'll disconnected. ADB will say it's offline, even though it's fully awake, plugged in, while also saying "USB debugging connect...
https://redd.it/1jo9em2
@reddit_androiddev
Hybrid Encryption in Android: Secure Communication Between Mobile and Backend Systems
https://itnext.io/hybrid-encryption-in-android-secure-communication-between-mobile-and-backend-systems-834c7f55a246?source=friends_link&sk=d0550c3fcdf8114f05d20b854aa3019b
https://redd.it/1jo2alk
@reddit_androiddev
What is your app marketshare of Android devices on 64 bit vs 32 bit (CPU architecture / ABI) in 2025?
Google began preaching developers for Apps to add 64-bit support in 2017.
In August 2019, Google Play started requiring all new apps and app updates to include 64-bit versions.
In August 2021, Android devices with 64-bit capable hardware were prevented from downloading 32-bit only applications from the Google Play Store.
But there's no statistics I could find on what's the current market share for 32 vs 64 bit devices. Or rather, how many devices out there still support 32 bit only architectu...
https://redd.it/1jnyu3x
@reddit_androiddev
gemini 2.5 in android studio
is there any way to use gemini 2.5 in android studio?...
https://redd.it/1jnujng
@reddit_androiddev
Possible to enable Auto-Formatting on Save with ktfmt?
Hey 👋
I'm using ktfmt to format my Kotlin code, and it's great! But I was wondering: is it possible to configure it to format automatically on save (format on save)?
I couldn't find anything about this. I know you can do it with Ctrl + Alt + L, but I was thinking it would be more efficient if it happened as soon as I save the file....
https://redd.it/1jngjfi
@reddit_androiddev
TensorFlow Lite Body Segmentation for Real-Time Background Replacement on Android.
https://github.com/ochornenko/virtual-background-android
This project leverages TensorFlow Lite body segmentation to replace backgrounds in real-time on Android devices. Using the selfie_segmenter.tflite model, it accurately detects and segments the human figure, allowing users to apply custom virtual backgrounds. Optimized for performance, it utilizes OpenGL ES for GPU-accelerated rendering and high-performance image processing, ensu...
https://redd.it/1jpf465
@reddit_androiddev
Calling ViewModel's onEvent in composable
I've been calling onEvent directly in my Compose code so far. I've encountered no issues.
But there are events where you need to call the event outside of onClick, e.g. for pagination or "marking as read".
I will be able to call that directly in Compose.
However, I also know about SideEffect {} composable. It's purpose is to call the code outside of compose, which, I guess, is what ViewModel is?
Please help me understand whether calling onEvent outside of SideEffect or LaunchedEffect is vali...
https://redd.it/1jp7tb1
@reddit_androiddev
Android Studio Meerkat Feature Drop | 2024.3.2 RC 1 now available
https://androidstudio.googleblog.com/2025/04/android-studio-meerkat-feature-drop.html
https://redd.it/1joz5vd
@reddit_androiddev
App opened and killed multiple times in background.
I work on an audio streaming app. It runs with an exoplayer (media3) in a forground-service.
I noticed a user with some strange data. The user has a Samsung A51 5g running Android 13.
What seems to happen is the app is opened and closed multiple times during a day/night.
I have contact with the user and the app is not opened by the user.
The user never closes any app on the phone (swipe from recent). Has the phone in flight mode while sleeping and only use my app 2-3times a day.
What and why...
https://redd.it/1jox9ul
@reddit_androiddev
How do you senior developers utilize AI in Android and other development?
Hello, everyone! As far as I know, most companies don't allow sharing code with others. And I'm sure you know the answers to most basic development questions. I wish to learn how to get the most out of AI tools....
https://redd.it/1jot80o
@reddit_androiddev
OCR(Optical character recognition) with android studio
Hey everyone... I am starting my first advanced project with android studio which is to make an OCR feature into my app that can convert my handwritten notes into text but sadly I GOT NO LEADS. Now I have no knowledge of Machine Learning and as I said this is my first project so I was just thinking If I could just find some code from GIT but I wont really learn this way.... What do you guys think am I ready enough to start an OCR? or start small?...
https://redd.it/1joqzsa
@reddit_androiddev
WikiNewsApp Just updated: A modern Android client for fetching and displaying global news from the open-source MediaWiki build using Modern architecture
https://github.com/MubarakNative/WikiNewsFeed
https://redd.it/1jom9st
@reddit_androiddev
Are Google Play Games Trophies worth adding?
I think they are mostly for "free marketing" and engagement, as some people will see their friends playing, others will play more to get them...
I have the reference of PlayStation trophies, where there are "hunters" that play any game to get more, or play more hours to get collectables, replay a game in harder difficulty... Although they are still a minority of overall users, but I think a good amount of players take a look at them, see if they can get the platinum etc and are familiar with th...
https://redd.it/1jogrtz
@reddit_androiddev
Desparate navigation structure with Official Navigation Library
I'm aiming this scenario:
I have different features like auth with 3 screens, profile with several screens, email with several screens and so on... I want to setup a navigation structure that mainly uses bottom navigation bar but users also be able to navigate between screens from different features and besides that backstack between different features (when navigating through bottom bar) should be protected and also each feature should be able to preserve their states across navigation action...
https://redd.it/1jod5hc
@reddit_androiddev
SDK is missing
Dear all,
there are tons of tutorial videos about how to install the missing SDK but none of them fits to my problem. For me there is simply no option "next" as you can see on the screenshot. I have windows 11 home. Any ideas? Thanks a lot in advance!
https://preview.redd.it/3xcfn3m472se1.jpg?width=1908&format=pjpg&auto=webp&s=8be1a81483db55b9602e5e3f028fdabbf6255747
...
https://redd.it/1jo8l8r
@reddit_androiddev
Anatomy of the SDK Runtime
https://www.youtube.com/watch?v=a7BMBZE1Nbc
https://redd.it/1jo7kam
@reddit_androiddev
21M, Built an App from Scratch – Now 230K+ Downloads, But Struggling with IAP
Hey everyone, I just wanted to share my journey as a solo dev. I’m 21, and about 7-8 months ago, I built my first app. No team, no budget, just me and my laptop. After launching, I had no funds for ads, so I focused purely on organic growth.
The first month was rough—only 500 downloads. It felt discouraging, like maybe this wasn’t going to work. But I refused to give up. Kept grinding, trying different marketing tactics, and by the second month, I reached 1,500 downloads. Still slow, bu...
https://redd.it/1jo0q06
@reddit_androiddev
Recommendations for Chat UI Kits or Components for Jetpack Compose (Android)?
I'm developing an Android messaging/chat application using Jetpack Compose, with my own XMPP-based backend. Since I have the messaging backend covered, I'm specifically looking for UI-only libraries or components to simplify creating a polished chat interface similar to WhatsApp.
# I've already explored:
Google's official Jetpack Compose samples, but they require significant customization to reach production-level quality.
Stream Chat SDK, but it's tightly coupled to their backend solu...
https://redd.it/1jny5xx
@reddit_androiddev
Images with transparent backgrounds now have intrusive solid backgrounds for some reason
https://redd.it/1jnqnsg
@reddit_androiddev
Replit Clone with native Android Dev
https://medium.com/coding-beauty/new-google-project-idx-fae1fdd079c7
https://redd.it/1jn8bbf
@reddit_androiddev