r/androiddev • u/ctrl2 • Jan 11 '16
r/androiddev • u/borninbronx • Apr 17 '25
Video React Native Isn't as Popular as You Think
I am not the author of the video - I just stumbled on it.
Next time someone asks which cross-platform framework to chose, remember this video ;-)
r/androiddev • u/thedroidproject • Nov 10 '17
Telegram messengers (100mil+ downloads) one of the main activities is 10 000 lines of code. How is this maintainable?
Source code: ChatActivity.java
.
How is it possible to maintain such a large file with reasonable time and efficiency? Are there any upsides of this bad practice?
r/androiddev • u/influencedfreewill • Nov 15 '23
Google started displaying full legal name and address on the Play Store page
It looks like Google started displaying the developer's full legal name and physical home address under App support - About the developer (this is a new section). It seems they started showing this for new accounts and possibly accounts that have been verified, that probably means that as soon as you do the new account verification on the Play Console, your full legal name and address will also start showing on your app's Play Store page. What do you think about this? For me this is a big privacy/safety concern.
r/androiddev • u/Fin_Aquatic_Rentals • Aug 27 '21
Video Finally finished my first Jetpack Compose/Native Android app!
r/androiddev • u/ComfortablyBalanced • Feb 24 '21
Discussion Android Deprecated Annotation is deprecated.

According to Official Android Documentation Deprecated itself is deprecated in API level S. So what's the replacement for Deprecated which itself is deprecated?
r/androiddev • u/nuuneoi • Jun 22 '15
Detailed tutorial on how to use Android Design Support Library
r/androiddev • u/Supervideoman1563 • May 14 '24
Article Google Officially Supports Kotlin Multiplatform
r/androiddev • u/ArmoredPancake • Oct 16 '20
Ugly Android Studio 4.1 icon
Am I the only one who noticed ugly 4.1 icon? Before it looked stylish and on par with Visual Studio, Xcode, other development tools and now it looks like a cheap knockoff made by a student for a bowl of rice. It looks especially bad on Mac OS.
r/androiddev • u/XTREME_TESTOSTERONE • Nov 25 '18
One of the best dev reactions I've ever seen
r/androiddev • u/TCattd • Apr 01 '15
Can Android devs stop this "add" thing?, please
r/androiddev • u/sebionreddit • Aug 24 '14
156.000 Downloads, 1,5 years on GooglePlay and why we only made 2000$ in revenue.
Hey guys! It’s been 1,5 years now since we released our android game dracoo the dragon, we will most likely not continue to make games so I thought I can at least share my experiences from that time so you won’t make the same mistakes. Our approach was making a free game with interstitial ads and inapp Levelpacks to buy. And let me get this straight although WE failed financially I think making free games is still the best approach for small developers.
GAMEPLAY: We developed the game for about 9 months and it we thought it looks pretty decent, that is also the feedback we had gotten from a lot of people. We also liked playing it ourselves but the truth is, for the average person it is way to hard to play, it is more liked those old school games where you really had to play to be rewarded, sadly that doesn’t really work anymore cause people are used to be rewarded all the time for not having to do a lot. Another thing is that you can move the flying dragon in 4 directions and you can also shoot as well, which we thought will set us apart from games like line birds and those kinds of games. We wanted it to be more like the mosquito levels in rayman origins. We tried a lot of different options controlling the player and we thought we picked the best one, but for mobile games it is still to complicated for most players.
so DON’t: make your levels to hard, it is fun for you but not fun for most of the audience out there. DO: use simple controls that go together with mobile devices.
PUBLISHER: If you try to use one which I don’t really recommend, CONTACT BEFORE RELEASE!!!! I know this sounds stupid to a lot of you, but we didn’t know anything, so we released the game, didn’t get the desired download numbers and then contacted chillingo to publish our game :) The sad thing was they where interested until I told them that the game is already in the store (at this point i HATED myself) Desperate and gullible we took the offer of a chinese publisher signed a 6-month contract and hoped for the best ;) we where screwed. They promoted the game once, we got a couple 1000 downloads and that was it, we also had to make a second version for them with there own shitty ad-network and we earned barely nothing.
HOW WE GOT at least the 150.000 DOWNLOADS!
20.000 through Giftiz we got contacted by them saying they would feature our game in their app for free. The way this works is you can play a „mission“ in a game that has giftiz implemented and the player is rewarded with some points he can use to take part in some game to win real prizes. What it did was we got a lot of downloads for a short period of time but also a lot of bad ratings and spammy reviews due to the forced downloads. People also posted reviews with there giftiz coupon codes. The second thing is that usually to be featured in their app is f*ing expensive. At the time we still were grateful for the downloads, but I wouldn’t recommend it though.
30.000 for a review at xda-developers now that was the BEST thing that happened to us, they liked our game. They wrote a review, a lot of people wrote follow-ups, tweeted and re-tweeted the review. So we got around 30.000 downloads in a few days combined with good ratings which resulted in a way better sustain then the giftiz featuring.
50.000 for featuring in App of the Day we also got featured by AppTurbo App of the Day. You have to give away your app with all features for free for 1 day, therefore you get a lot of downloads. Sounds good right? We got 40.000 that one day and 12-15.000 the days after that. I have to say those guys where really nice and working with them was very smooth, so if somebody says it’s a scam… IT IS NOT. However this won’t make you rich either, the truth is they give you visibility, but THAT DAY you don’t earn money! The days after you have way more downloads, but we’re talking about a couple hundred bucks. The DOWNSIDE, no matter how good your game is, FORCED downloads will receive bad ratings. They change the ranking algorithm every now and then so forgive me if I cannot give you some good insights, but from what we experienced RATINGS do matter in your download numbers.
20+30+50 =! 150.000 right the rest was either natural or I don’t remember how ;)
MONETIZATION: We tried a lot of different AdNetworks, AdBuddiz was ok (only games, Interstitials), the google ads are the worst in my experience and also a few others I don’t quite remember. The only one we use now is Chartboost, ECPM is good, you have an account manager you can talk to, implementation should be easy (I only do the graphics so I can’t say more about that). We did only sell maybe 20-50 Levelpacks, so that’s not really relevant.
What we could measure is that we earn 0.02 $ per User. For a very long time I thought of this in the complete wrong way. 2 Cents per User is not a lot, but if your game has a better retention then our game you can increase that number. Probably these are only high hopes but if you have a game that people play a lot longer or more often, maybe you can increase that number to say 10 Cents per User. Usually 1-2% of people playing free games would buy your game if they like it. So that means you would need 100 downloads on a free version to get 1-2 paying customers. If you sell your game for 2$ well you pretty much end up with the same amount of money you would have gotten with a free version with ads. And if you can increase the revenue per user to our 10 cents then the result would be 10$.
r/androiddev • u/4bhii • May 11 '25
My app got rejected because i don't have 12 fking people to test daily
I literally begged my friends and friends of friends to install my app, but after 14 days i got rejected saying they need to open the app daily, wtf do i do now?
r/androiddev • u/locsandcrocs • Jul 04 '21
Video I've been working on this Lottie animation editor to edit and export Lottie animations (supported by Android) without After Effects! A lot of people on here have given super useful feedback so far and here's the UI update I'm implementing based on it. Feel free to sign up on lottielab.io. Thanks!
r/androiddev • u/JC-EYZ • Nov 01 '19
Admob is exploitive, illegal business practice.
Hey r/androiddev
Over the last few years and countless apps I've developed on Android, I began to notice an unsettling pattern with Admob, Google and their business practices. I decided to do an experiment:
First, I created a simple game app and acquired users for it using Admob/Google Adsense's user acquisition exclusively.
Second, once the audience size was large enough, I began monetizing using Admob/Google Adsense exclusively.
Just as suspected, within 30 days of monetizing the audience I PAID Admob for WITH Admob, my Developer account was suspended indefinitely for "Illegitimate Traffic."
Google exploits it's developers delivering illigitimate traffic to you when you pay for it.
They will suspend you when you attempt to monetize the same traffic you paid them for.
Also, as a side note: take a look at where the acquired users come from when you purchase UA from Admob - coincidentally, all from small towns in India..
This is the final nail in the coffin for me and ever working with Google or Admob again. Since there is no legitimate recourse you can take up with Admob (what a surprise) I would be extremely cautious if you rely on Admob's services for any critical part of your development.
r/androiddev • u/srinathrajaram • Jul 08 '19
When Sundar's Tweet is like an annoying app review. (Great App - Four Stars!)
r/androiddev • u/shadohunter3321 • Apr 25 '19
Play Store When most apps are doing away with *bug fixes* *improvements* since the day it first came out
r/androiddev • u/prlmike • Aug 14 '19
The (not so) hidden cost of sharing code between iOS and Android (Dropbox Engineering)
blogs.dropbox.comr/androiddev • u/[deleted] • Jul 23 '18
AndroidX development moving to AOSP
We are thrilled to announce that AndroidX development is moving to AOSP. This means that we will now be doing the majority of our work in public using the public AOSP Gerrit review tool and landing changes to a public git repository. We hope you love this update as much as we do. A blog post with more details is coming in a few days, but we wanted to share it with you all early. We have a README.md with the details on how to contribute. Let us know if you have any questions.
r/androiddev • u/Character_Oven_1511 • Mar 18 '26
What I learned keeping an Android app alive 24/7 on Samsung, Xiaomi, and Honor
built a safety monitoring app for elderly parents that has to run continuously — if it gets killed, nobody gets alerted when something goes wrong. Here's what I learned fighting OEM battery managers across 100+ versions.
The problem
Stock Android already makes background work hard. But OEMs go further:
- Samsung: Sleeping Apps list kills your app after 3 days of no foreground use. OTA updates reset your battery optimization exemption silently.
- Xiaomi/Redmi/POCO: MIUI's battery saver kills background services aggressively. OTA updates reset autostart permissions.
- Honor/Huawei: PowerGenie flags apps that "frequently wake the system." If you call `setAlarmClock()` more than ~3 times per day, you get flagged. HwPFWService kills apps holding wakelocks >60 min with non-whitelisted tags.
- OPPO/Vivo: "Sleep standby optimization" and "AI sleep mode" freeze apps during detected sleep hours — exactly when a safety app needs to be running.
A foreground service and `REQUEST_IGNORE_BATTERY_OPTIMIZATIONS` are necessary but nowhere near sufficient.
What actually works: 11 layers of recovery
No single mechanism survives all OEMs. The answer is redundancy:
Foreground Service with `IMPORTANCE_MIN` notification channel (not DEFAULT — OEMs auto-grant `POST_NOTIFICATIONS` on higher importance, making your notification visible)
WorkManager periodic workers — survives service kills, but KEEP policy silently discards new requests and REPLACE resets countdown
AlarmManager exact alarms — `setExactAndAllowWhileIdle()` for scheduled wake events. Never use `Handler.postDelayed()` as a replacement — handlers don't fire during CPU deep sleep
AlarmClock safety net — `setAlarmClock()` at 8-hour intervals only (~3 calls per day). Shorter intervals trigger Honor's "frequently wakes" warning
SyncAdapter — `ContentResolver.addPeriodicSync()` gives your process priority that OEMs are reluctant to kill (sync adapters are a system concept)
BOOT_COMPLETED receiver — re-establish everything after reboot. Some OEMs (OnePlus, Samsung, Xiaomi) reset permissions after OTA, so detect that and re-prompt
SCHEDULE_EXACT_ALARM permission receiver — when the user revokes this permission, ALL pending AlarmManager chains die silently. Listen for `ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED` and re-establish on re-grant
Self-monitoring watchdog — WorkManager worker that checks if the service and alarm chains are alive, re-establishes missing ones. But check `isPending()` first — blind re-scheduling adds redundant wakes that trigger OEM flagging
Batched accelerometer sensing — keep the sensor registered with `maxReportLatencyUs` during idle/sleep. The HAL continuously samples into hardware FIFO and delivers via sensor interrupt — invisible to OEM battery managers, zero AlarmManager wakes
3-tier power state (active/idle/deep sleep) — reduce alarm frequency from every 5 min to every 15-60 min when the device is still. Went from ~4,300 wakes per day to ~240 (94% reduction)
Wakelock tag spoofing on Huawei/Honor — HwPFWService has a whitelist of allowed wakelock tags. Use `"LocationManagerService"` on Huawei/Honor, original tags on other OEMs
Lessons learned the hard way
- `ActivityManager.getRunningServices()` is useless — deprecated since API 26, unreliable on newer Android. Use a `@Volatile` static `isRunning` flag set in `onCreate()`/`onDestroy()`
- SIGNIFICANT_MOTION sensor doesn't exist on all devices — Honor lacks it. Always have a fallback (compensated snapshot intervals via AlarmManager)
- Sensor FIFO data goes stale during deep sleep — after wakeup, the first readings from `registerListener()` may be minutes old. Flush + warm-up discard before collecting. Some HALs (Honor) rebase `event.timestamp` on FIFO flush, defeating delta checks — use `onFlushCompleted()` callback as primary signal
- `getCurrentLocation()` may never complete — Play Services hangs on OEM-throttled devices. Always wrap in `withTimeoutOrNull()` and fall through a priority chain (HIGH → BALANCED → LOW_POWER → lastLocation)
- Never call `schedule()` for periodic workers on every service restart — KEEP preserves stale timers, REPLACE resets countdown. Query `getWorkInfosForUniqueWork()` first, only schedule when not already enqueued
Battery result
Less than 1% per day. The key insight: aggressive scheduling wastes more battery than it saves reliability. A 3-tier power state that backs off when the device is still achieves both low battery and high reliability.
Happy to answer questions about any of these techniques. The OEM compatibility rabbit hole goes deep.
r/androiddev • u/arunkumar9t2 • Dec 28 '19