r/androiddev • u/hamatro • Apr 23 '18
@minSdkVersion just tweeted "21"
https://twitter.com/minSdkVersion/status/98853873863976550560
u/swag_stand Apr 23 '18
There. No excuses. Better upgrade quick before material design is completely dead.
14
u/CharaNalaar Apr 23 '18
So tomorrow then?
9
u/TheWheez Apr 24 '18
Well now that the support library has finally released material design views, I’m sure we’ll have at least until tonight!
4
u/CharaNalaar Apr 24 '18
They'll just update those with the new design. It's another ploy to rip MD out of our cold, dead, hands.
3
Apr 24 '18
i'm out of the loop what are people talking about in regards to MD being dead, what's this new design?
6
u/der_RAV3N Pixel 2 | Nexus 7 | Nexus 4 Apr 24 '18
It's being talked about "material design 2", which generally seems to be more round just like what Google already did here and there and on the pixel phones
3
2
u/grishkaa Apr 24 '18
Yeah, gotta enjoy those two weeks without the need to have appcompat in my dependencies!
15
52
u/well___duh Apr 23 '18
Note that this is just some random guy, no one official from Google.
20
u/Lazyfaith Apr 23 '18
Yes, maybe I'm out of the loop but why are you people considering this twitter account as the ultimate decider of this? As far as I can see it's just a random anonymous account, and someone else in this thread mentioned that 20% of devices would be cut off by this min version bump.
115
u/JakeWharton Head of sales at Bob's Discount ActionBars Apr 23 '18
Devices are not users and users are not your customers and your customers are not even the subset of customers which provide value. Making decisions based on the platform distribution is equally as stupid as making decisions based off of a random (albeit amazing) Twitter account. Some apps will have 30% pre-21. Others will have effectively 0% pre-21.
46
u/remainingpace Apr 23 '18
Devices are not users and users are not your customers and your customers are not even the subset of customers which provide value.
Beautiful.
14
u/philipwhiuk K-9 Mail Developer (GH: philipwhiuk) Apr 24 '18
Devices are not users and users are not your customers and your customers are not even the subset of customers which provide value. Making decisions based on the platform distribution is equally as stupid as making decisions based off of a random (albeit amazing) Twitter account. Some apps will have 30% pre-21. Others will have effectively 0% pre-21.
And before you launch an app there's no way to know what your customers will be except that there is probably some finite number of potential customers using pre-21.
36
u/JakeWharton Head of sales at Bob's Discount ActionBars Apr 24 '18
Indeed! But that statement is true for just about every API level. You have to weigh the development cost of the initial investment and recurring maintenance of supporting those API levels against the potential value you'll extract from that ever-diminishing set of users who haven't bought a new phone in 4 years.
But I'll go even farther:
If you are starting an app today then 21 is a very conservative choice. I would choose something like 23 instead. Once the app is working (however long that takes) I would then re-evaluate and potentially lower. Even if you are launching an app today then 21 is perfectly reasonable. There are so many things standing between your app and success. Unless you are targeting a niche segment where you know the devices trend vastly older, targeting the higher end of the market will produce higher-value users to catalyze the network effect. And by the time your app is successful the distribution will have shifted such that you never have to lower anyway.
Nor did we even get into the fact that raising your minSdk doesn't magically eliminate that entire segment of your user base. It merely relegates them to an older version where they can continue enjoying your app. If they haven't upgraded their phone in 5 years then they're not going to be too interested in your updates either.
7
u/pjmlp Apr 24 '18 edited Apr 24 '18
If they haven't upgraded their phone in 5 years then they're not going to be too interested in your updates either.
Given the way you guys manage upgrades, not everyone lives in countries that they can throw a month's salary just to upgrade their phone by buying a new one whenever a new release comes out.
Yet those users, would also like to have apps accessible to them.
Oreo's adoption is crawling and I bet next year Android P's adoption ratio by IO time will be even less meaningful.
5
u/JakeWharton Head of sales at Bob's Discount ActionBars Apr 24 '18
I don't manage upgrades.
-1
u/Freak4Dell Apr 24 '18
It seemed pretty obvious he was referring to the collective you, as in Google.
8
u/JakeWharton Head of sales at Bob's Discount ActionBars Apr 24 '18
I see. I see.
Then it should also seem pretty obvious that the collective Google doesn't actually push updates to any phones except for the ones they build and sell directly. So perhaps the collective Reddit should complain to the collective OEM that isn't updating their devices with the newest operating system version that the collective Google provides to them.
1
u/Freak4Dell Apr 24 '18
Or, you know, maybe Google, a company with essentially unlimited resources and power, should figure out how to get OEMs on board with proper updates, rather than allowing OEMs to fuck up the perception of their product.
But I suppose it's easier to just pay people to be smug and deny any flaws exist in the system.
→ More replies (0)2
u/vitriolix Apr 24 '18
Actually, if you're making an app associated with a product or company you often know very well who your customers are before you launch the app
0
Apr 24 '18
[deleted]
2
u/Hi_im_G00fY Apr 24 '18 edited Apr 24 '18
Absolutely right! When you have
no way to know what your customers will be
then you're doing something significantly wrong.
1
Apr 25 '18
Yeah, it's difficult to predict what Android devices your customers are using. You could use someone else's data, but in order to be useful, that data must cover millions of users (or even 10s of millions), and then it might be close to a representative sample of your ueerbase when you launch.
8
u/ZakTaccardi Android Developer Apr 24 '18
Out of those 20%, probably less than 3% are users. Users with old devices simply use apps less.
This depends on your app of course. Profile your user base, and make your decision effectively.
7
u/nacholicious is useless (no children, no background, no id, no style) Apr 24 '18
This account has historically bumped the minSdk based on some form of common sense popularity of the developer community, in a way where if you support a minSdk that is lower you will most likely be in a minority.
Also the estimates are very conservative which lends some kind of strength to them, the app agency I work at started to drop 19 by last summer
2
Apr 25 '18
The last company I worked at was still on API 15. It was only after active users on that version dropped below 100, that the boss was Ok with moving to API 16 (they didn't want to lose those few 100 users).
2
4
u/WestonP Apr 24 '18
Yup. No reason to just arbitrarily raise your requirements on account of some random internet guy who says to. I only raise them if it’s actually useful to do so, such as the older stuff having some difference that requires different code or that represents a support headache. Google paints a much more complete picture for us: https://developer.android.com/about/dashboards/index.html
-5
u/adrianmonk Apr 23 '18 edited Apr 24 '18
I'm confused why the twitter account lists "d.android.com" as their URL. Seems like they're trying to sound official when they're not. Maybe they just had to put something, though.
EDIT: A little surprised by the strong reaction here. I'm not saying they are trying to scam anyone, just that they've made it a little confusing for someone who like me had never heard of the account (and doesn't know what policies Twitter has about this sort of thing).
9
7
19
u/HGuy10 implements android.app.Fragment Apr 23 '18 edited Apr 23 '18
Woha there, for a moment I thought I was over at /r/mAndroidDev. But seriously, API 21 is not realistic if you want to keep supporting the whooping 20% 15% of devices still on Kitkat and Jellybean.
68
u/JakeWharton Head of sales at Bob's Discount ActionBars Apr 23 '18
Supporting devices isn't smart. You should support your customers which will not match the distribution of devices.
45
u/justjanne Developer – QuasselDroid Apr 23 '18
Exactly, and that’s why I support API 15.
29
u/jrobinson3k1 GoPro Apr 24 '18
so sorry
8
u/justjanne Developer – QuasselDroid Apr 24 '18
Nah, It's fine actually. I'm using Kotlin with custom backports of Optionals, so I barely even notice it.
Except for SSLEngine, there I really notice it.
2
u/well___duh Apr 24 '18
with custom backports of Optionals
Why is this necessary when Kotlin has native support for Optionals, no backport required?
3
u/justjanne Developer – QuasselDroid Apr 24 '18
Kotlin has native support for nullable types, but not actual Optionals.
And guess what, RxJava2 does not allow nullable values, at all.
1
u/well___duh Apr 24 '18
What's the difference b/t nullable types and java optionals?
1
u/shadowdude777 Apr 27 '18
Optionals are wrapper types around a value that can be null. Nullable types are literally just that value and they can be null or not. In Java, all types are nullable representations of a class, of course. In Kotlin, your types are a class and either a "nullness" of nullable or non-null. The non-null type
Stringcan actually be considered a subtype of the nullable typeString?for all intents and purposes. The fact that the type system is aware of this distinction in Kotlin means that nullability is enforced by the compiler, not at runtime like with Java Optionals.Another way to think about Kotlin nullable types, if you're familiar with union types, is that
StringisString, andString?isString|null. But that isn't how it's actually implemented in Kotlin since we don't have union types of course. That is how nullable types are implemented in some languages though, like Ceylon.24
u/N1ghtshade3 Apr 23 '18
20% of devices = tens of millions of cheap, low-capability phones in India. Many devs very well may choose to exclude that segment of the market.
4
u/safgfsiogufas Apr 24 '18
Chess.com said only 5% of their users are below API level 21. We moved all our apps to 21 last year. It's quite realistic. The app I'm currently working on also has a min level of 21.
6
u/m0zzie Apr 23 '18
20%? That's.. interesting math you have.
Platform stats show 15%. Source: https://developer.android.com/about/dashboards/index.html
2
u/HGuy10 implements android.app.Fragment Apr 23 '18
Good call, I guess things keep changing for better.
8
u/tweettranscriberbot Apr 23 '18
The linked tweet was tweeted by @minSdkVersion on Apr 23, 2018 22:02:56 UTC (3 Retweets | 7 Favorites)
21
• Beep boop I'm a bot • Find out more about me at /r/tweettranscriberbot/ •
2
u/renges Apr 24 '18
Good bot
0
u/GoodBot_BadBot Apr 24 '18
Thank you, renges, for voting on tweettranscriberbot.
This bot wants to find the best and worst bots on Reddit. You can view results here.
Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!
8
Apr 23 '18
Are there realistically even any devices that can't handle 21? Like I have a $100 prepaid phone from AT&T that's 3 years old and it handles it kinda choppy but totally fine. I feel like the people on older versions are the same people who don't know how to perform software updates aka the people who don't know how to download apps.
27
u/shadowdude777 Apr 24 '18
It isn't a matter of devices being able to handle it, for the most part. It's devices that were abandoned on 4.x.
It's also partially users who refuse to take software updates, of course. Not even a year ago, I saw someone with a Galaxy S2 next to me on the train... And they had the system update icon sitting in their notification tray. When is the last time an OTA was pushed out to the S2? 5 years ago? More?
5
u/Zhuinden Apr 24 '18
I'm not updating my Nexus 5X to Oreo because the kernel that fixed the bootloop issue is Nougat-specific, but I'm probably the minority with this sort of problem.
7
u/Gaja93 Apr 24 '18
Here is the kernel fix for Oreo and literally every monthly security release of Oreo: https://forum.xda-developers.com/nexus-5x/general/nexus-5x-bootloop-death-blod-andorid-t3683926
1
7
u/pjmlp Apr 24 '18
Here in Germany the cheapest noname pre-paid phones you can get are still mostly Android 4.4. and 5.0.
A few known brands than started to move to 6 during last year.
Needless to say that these phones never get any kind of updates.
0
u/I_am_the_inchworm Apr 24 '18
Nor do they typically use our apps...
9
u/pjmlp Apr 24 '18
Just because some users aren't willing to pay more than one month salary for a new shinny phone, it doesn't necessarily mean they aren't using some apps.
3
6
u/Zhuinden Apr 23 '18
We can't just ditch 18% of active users. :/
23
12
u/Saketme Apr 24 '18
I wonder if these really are active users. These users haven't bought a phone in 5 years. Can they provide any value to your business?
5
4
u/pjmlp Apr 24 '18
Most users live in countries were pre-pay rules and only replace phones when they are no longer serviceable or get stolen.
Not everyone is on rich countries with 2 year contracts getting new devices on renewals.
4
2
1
1
u/Opens0urceror Apr 25 '18
IMO losing 15.7% of my userbase for a little bit of extra work is not "practical" or "rational".
3
u/helemaal Apr 25 '18
How do you know those people would download your app?
3
u/Opens0urceror Apr 25 '18
They're active users of my app already (custom analytics confirms the actual numbers are close to what's reported by Google). I don't want to lose them or stop supporting them.
I would consider dropping support for SDK 14 which is at 0.4% now. But not yet for SDK 15, which at 1.7% translates to thousands of users of my product.
1
u/memorex386 May 16 '18
unless your app depends on a functionality that is only available 21+, then you should still target the lowest SDK you can
187
u/CuriousCursor Apr 23 '18
Good thing I use the Twitter API on my CI server to pull the min SDK version from this account! Don't need to change a thing/s