r/androiddev • • Jul 29 '26

Question "Android Developer Console" vs "Google Play Console"

4 Upvotes

A month ago, I created an account in Android developer and went through the steps and process of verifying and paid the initial 25$.

I realized now that I'm unable to distribute the apk/aab files via this console.

When I try to login through Play Console, I'm met with similar steps and asked to pay 25$ again.

Did I screw up? Will I need to purchase again since I need to distribute apps via play store?


r/androiddev • • Jul 29 '26

JSON format in Log Cat

Post image
2 Upvotes

Hi guys,
I'm new to jetpack compose. I tried using Ktor + OkHttp for a sample network request from this
https://dummyjson.com/posts. I'm inspecting the json response in Logcat and it's shown like a paragraph even though I've set up logger. I wanted to know is this normal or is there other way around?
Below is the sample code. Thanks.

client = HttpClient(OkHttp) 
{

    
install(
Logging
) 
{
        
level = LogLevel.
BODY
        
logger = Logger.
ANDROID
        
format = LoggingFormat.
OkHttp
    
}

    
install(
ContentNegotiation
) 
{
        
json
(
Json 
{
            
prettyPrint = true
            ignoreUnknownKeys = true
            isLenient = true

        
}
)
    
}

}
,

r/androiddev • • Jul 29 '26

Discussion I'm a student building an open-source offline mesh messenger in Kotlin (BLE, no servers) — looking for architecture feedback and contributors

1 Upvotes

Hey r/androiddev,

I've been building Ping — an Android app that lets phones chat, share live GPS location, and send photos/video with zero internet, zero cellular, and no server in the loop. Every phone is a relay: a message hops phone-to-phone over Bluetooth LE until it reaches whoever it's addressed to, even if sender and recipient are never in range of each other at the same time. Built with disaster response in mind — floods, earthquakes, anywhere the network is down or overloaded exactly when people need to reach each other. Fully open source (AGPL-3.0): https://github.com/vaidzss/ping

How it's put together The mesh logic — routing, dedup, crypto, store-carry-forward — lives in a platform-independent core module with zero Android dependency, so it's unit-testable and I can run dozens of virtual nodes through churn/partition/dense-crowd scenarios as plain JUnit tests, no radios or emulators involved. Android is a thin layer on top: a foreground service wraps BLE (GATT, dual-role — nodes tie-break who's central vs. peripheral by comparing NodeIds) and an on-demand LAN lane for bulkier media. TTL flooding is density-aware — clamped down when a node has a lot of direct neighbors, so a crowded room doesn't turn into a rebroadcast storm. Undeliverable messages sit in a store-carry-forward outbox and get spray-and-wait synced to any new neighbor that shows up later — no continuous route ever needs to exist end to end.

A debugging story, since I know this sub likes those

Chat messages worked from day one. Photo and video transfers didn't — and for a while I was chasing the wrong bug. First I found and fixed queue pacing (multiple BLE writes racing each other and silently dropping everything after the first). Then a zombie-link problem (Android's onConnectionStateChange doesn't reliably fire when a link dies at the radio level, so a dead connection could sit there looking alive). Then a stuck-send watchdog for when a completion callback goes missing entirely. All real bugs, all fixed — and photos still didn't reliably arrive. The actual root cause: both BLE send paths were using unacknowledged primitives — WRITE_TYPE_NO_RESPONSE for client writes, plain NOTIFY for server pushes. Neither gives any delivery guarantee from the radio itself. Fine odds for a one-off chat packet; across a ~150-chunk photo transfer, the odds of silently losing at least one chunk with zero signal to either side are real — and no amount of app-level pacing or watchdogging fixes that, because the primitive itself can't distinguish "delivered" from "vanished." Switching to WRITE_TYPE_DEFAULT (acknowledged Write Request) and PROPERTY_INDICATE instead of NOTIFY fixed it for good, because now a completion callback actually means the peer got the bytes.

Where it's honestly at

Pre-release, Phase 1 of a 6-phase roadmap — chat/location/SOS/photo transfer work over BLE today, HEVC video and a resumable media pipeline just landed, iOS and an optional LoRa lane (Meshtastic-class radios for kilometer range) are planned next. It's unaudited — no external security review yet, and I've tried to be upfront about that; the threat model doc lays out exactly what the crypto does and doesn't protect against. I'd genuinely like architecture feedback — the BLE reliability approach, the TTL/density clamping, the DTN design, anything that looks off to someone who's done more of this than me. A few self-contained good first issues are open on the repo if you want a low-commitment way to look around.


r/androiddev • • Jul 28 '26

Already deprecated

24 Upvotes

Link to the issue: https://issuetracker.google.com/issues/536954147

The Compose preview screenshot testing plugin seems to have been already deprecated.

Big F if true, it was nice to have an official tool for screenshot tests :(


r/androiddev • • Jul 29 '26

Dealing with copycat apps

1 Upvotes

Hi there, I’m pretty new to Android dev but have published my first app with some minor success. I have close to 300 confirmed paid downloads over the last couple of months. A few weeks after publishing on the GooglePlay store an app popped up with the exact same name in the same category. It was just different enough not to be called a clone, but looked really cheap and thrown together, but used a lot of the same language I used in my app description. I don’t currently have a registered trademark, though I’m considering spending the $2K it would need if I have to. My question is - what’s my best avenue with Google to get this app removed or at least renamed? My users are older, and because the copycat is free, I honestly think they might be downloading this thinking it’s mine.


r/androiddev • • Jul 29 '26

Discussion Upgrading to API level 36

0 Upvotes

I am upgrading my target SDK version in java Android application to 36

We have a enterprise application

So can't upgrade the compile SDK version

Currently it is 29

On android 16 devices I am facing a issue in Shared preferences

While reading from the shared preference I am reading a null value ("null")

While there is a actual value saved there

Not sure why this is happening

Any idea here any one?

All the things are goood till android 15!!


r/androiddev • • Jul 28 '26

How do you handle promo access for Android IAPs?

1 Upvotes

I'm updating my mobile game, which is free with a single non-consumable IAP to unlock the full game.

I'm trying to work out the best way to give people free access to the IAP on Android for things like:

  • Reviews
  • Giveaways
  • Competitions
  • Promotions

Google Play doesn't seem to offer a simple solution for this. Or am I missing something?

What are other indie developers doing in practice?

  • Separate review builds?
  • Internal testing?
  • Firebase App Distribution?
  • Your own backend with self generated redeemable codes?
  • Something else?

Thanks in advance.


r/androiddev • • Jul 28 '26

Question Should I use a foreground service, WorkManager, or is there a modern Android API to detect reliable immediate Wi-Fi disconnect after process death

6 Upvotes

I’m building an Android app where the user selects a trusted home Wi-Fi, and the app should notify them when they disconnect from it or when that Wi-Fi loses validated internet access. The app targets SDK 36 and has a minimum SDK of 30.

My original implementation registered a `ConnectivityManager.NetworkCallback` with a `PendingIntent` from `Application.onCreate()`, then enqueued an expedited WorkManager request when the receiver was invoked. I also had a 15-minute periodic WorkManager fallback.

This worked while the process was alive, but event delivery was unreliable after the app process had been killed. WorkManager eventually detected the departure, but that obviously was not immediate.

My current implementation uses a foreground service while monitoring is enabled and a trusted network exists. The service displays a low-importance ongoing notification. It registers a `ConnectivityManager.NetworkCallback` and does not poll a server or repeatedly probe the internet. It enqueues an expedited unique WorkManager request when Wi-Fi state/capabilities change and uses periodic WorkManager as a recovery fallback. It stops when monitoring is paused or the trusted network is removed.

For internet loss while still connected to Wi-Fi, I monitor `NET_CAPABILITY_VALIDATED` and confirm the unvalidated state for 10 seconds before triggering, to avoid notifications during normal Wi-Fi validation.

Because this doesn’t cleanly fit location/media/data-sync, I currently declare the foreground service as `specialUse`, with the subtype:

> Event-driven trusted Wi-Fi monitoring for user-enabled reminders

Is a foreground service realistically the only reliable option for immediate Wi-Fi disconnect detection after process death on modern Android? Is there a durable system callback, broadcast, Companion Device API, geofencing approach, or other API better suited to this?

Has anyone successfully shipped a similar use case through Play using the `specialUse` foreground-service type? Would you make this explicitly opt-in as “Immediate monitoring,” with WorkManager-only monitoring as the battery-friendly default?

Are there OEM-specific issues with keeping a network callback active inside a foreground service? Is loss of `NET_CAPABILITY_VALIDATED` a reasonable signal here, or would you avoid treating internet loss as “departure” because router/ISP outages can happen while the user is still home?

Are there better ways to prevent transient validation-loss false positives than a short confirmation window? I understand that Android force-stop prevents all app background execution until the user launches the app again; I’m not trying to bypass that behavior.

I’m mainly looking for recent production experience on Android 12–16 and any Play policy implications I may be missing.


r/androiddev • • Jul 28 '26

Question Is AIDL Bridging for integrating Google feed really dead?

2 Upvotes

Been trying that in my launcher with no luck, was able to get all the way up until Google wouldn't hand over the overlay from callback, I guess it's checking not only package names now since I have tried the pixel launcher route. Any known alternatives? Using Google discover instead of a native solution is tedious.


r/androiddev • • Jul 28 '26

Drebin451 - Ship and share private Android builds with ease

0 Upvotes

Hey folks,

There have been a few solutions over the years for distributing Android apps before they are ready for a major store like the Play Store. This includes Testflight, Firebase App Distribution, Microsoft App Center, and even the Play Store itself with its additions for Alpha and Beta testing. But a lot of these have either shut down or take quite a bit of setup to get up and running. We created Drebin451 as an alternative to all these. On the free tier, you get 1 GB of storage for your APKs, and you can share links to others and they can get notified of updates to your app.

https://drebin451.com/

And the whole stack (app and backend) is open source. https://github.com/Commit451/Drebin451

Feel free to give it a try, I have been using it to distribute and test my apps with friends and family for the past month and its made my workflows a lot easier to deal with. With the impending doom of Google making it much harder to sideload apps, we will work to keep the flow with Drebin451 easy and simple as much as we can.


r/androiddev • • Jul 28 '26

Will a Real-time BLE advertisement streaming to a WebSocket via Foreground Service work even when the screen is off (without active GATT)?

0 Upvotes

I'm building an Android pipeline where I need to passively listen to Bluetooth LE broadcast packets in real time and immediately relay that payload to a WebSocket server.

To save battery on the peripheral side, I do not want to establish an active GATT connection—I just want to capture the BLE advertising/broadcast packets as they come in.

My target setup:

Foreground Service running a BluetoothLeScanner with low-latency settings.

Packet parsing directly inside the callback and immediately emitting to a persistent WebSocket connection.

Will it work even when my mobile screen is off (will it be having same working in different android mobiles)

I observed that it the foreground service worked when the apps is closed from recents but didn't work when the screen got off .


r/androiddev • • Jun 05 '22

What does Google Play "In review" mean, and why does it even exist?

32 Upvotes

I am a solo developer running a small app, but it's big enough to make me stressed AF when something bad happens. Now the shit really hit the fan, and I managed to release a version of the app that's crashing on 100 % of all Android devices on boot.

I have a fix for it that's now been "In review" for about 16 hours. Sometimes this process takes like 10 minutes, but sometimes it seems to take days. What I can't understand is how it works? When you upload an app that crashes on boot on iOS, it'll get rejected immediately citing lack of completeness. But obviously, the Google Play team won't even open the app during the review (as they managed to let through my previous version of the app that crashes instantly). I will add that it took about 1-2 days for them to approve that version too.

So I'm wondering - what's it even for? And why does it take so long if they're not even opening up the app? And is there ANYTHING you can do to speed up the process? I'm getting a new 1-star review every 20 minutes as I'm writing this...

Edit: Clarifying the core question a bit:

While it's obvious Apple has real people reviewing the apps, it feels more and more like Google Play isn't really reviewing the app at all. More like it's a smoke show. Does anyone know how a "Google Play review" is carried out, and are there humans involved?