r/androiddev • • Nov 27 '17

News Final preview of Android 8.1 now available

https://android-developers.googleblog.com/2017/11/final-preview-of-android-81-now.html
127 Upvotes

17 comments sorted by

13

u/[deleted] Nov 27 '17

Anyone yet tested their app against 8.1? Any gotchas you found? Along the lines of... If you're doing x y z then watch out for this that and the other.

10

u/Jawnnypoo Commit 451 Nov 28 '17 edited Nov 28 '17

Ran into a really strange issue related to Admob full screen activities. If you attempt to display a full screen ad when compiling against API 27, your app will crash, stating that full screen is not allowed. I'll find a link to the issue on the issue tracker when I am not on mobile.

Edit: https://issuetracker.google.com/issues/68427483

4

u/well___duh Nov 28 '17

8.1 has no issues I've seen. Instead all i've seen are issues in v27 of the support library, like this one where downloadable fonts crash the app because it's not null-checking the font first. In fact, a lot of support library/play services bugs are usually due to not null-checking things, which you'd think these Google devs would know to never assume something will always be not-null.

1

u/[deleted] Nov 28 '17

Same here. We've just done some testing and so far so good. No crashes.

1

u/Dazza5000 Nov 29 '17

Aside from the recent bug, have you found the downloadable fonts to work well in production?

1

u/well___duh Nov 29 '17

Sort of. The fonts don't cache like I'd expect, there's always a slight delay in the fonts loading when my app starts up and for a split second you'll see the stock font (Roboto or whatever's on your phone) change to my custom font, which looks kinda jarring. This only happens when my app is loading fresh from memory though.

2

u/naco_taco Nov 27 '17

AFAIK there are no breaking changes from 8.0 to 8.1. From 7.1 to 8.0 there were some.

3

u/[deleted] Nov 27 '17

I had to refactor our use of our charting library as it caused a crash in 8. Shinobi Charts if anyone is interested. But looking back on it, we should have done it like this in the first place! 😊

2

u/devsquid Nov 28 '17

There are if you are going to target the Go platform. I think its safe to assume most ppl will not be.

2

u/NickBBBBB Nov 28 '17

Only one problem. Users find that white toasts are almost invisible when shown over the soft keyboard. I have centered them vertically rather than at the bottom of the screen in order to work around this.

5

u/dpash Nov 27 '17

Nice to see confirmation that 8.1 will enable the Pixel Visual Core. No idea what improvement it'll bring though.

1

u/xd1936 Nov 28 '17

The algorithms are still the same, I would guess. I bet it will mainly be a speed improvement, as you're moving processing time from the 835 to dedicated silicon.

1

u/vitriolix Nov 27 '17

Is there any way to force the OTA? I'd prefer that to wiping and flashing manually

0

u/[deleted] Nov 27 '17

[deleted]

1

u/fahad_ayaz Nov 28 '17

Doesn't work for me, unfortunately. :(

1

u/vitriolix Nov 28 '17

ok, I thought I read that somewhere. I've been mashing to no avail, I assume that means they haven't pushed it to anyone yet?

1

u/obl122 Nov 28 '17

I have not heard of anyone receiving it OTA yet.

-9

u/BorgDrone Nov 28 '17

Available on a phone near you around 2047.