Live data from Hacker News

First Preview of Android N: Developer APIs and Tools

android-developers.blogspot.com

71–74 of 74 posts

Re: First Preview of Android N: Developer APIs and Tools

#71

I'm disappointed to see that it will take Android N for the Doze feature to be practical [0]. As it currently stands, Doze only activates when the device is stationary. My phone never leaves my pocket, since I'm paranoid about setting it down, so the gyrometer being engaged is enough to prevent Doze from triggering. [0] http://www.androidpolice.com/2016/03/09/android-n-feature-sp...

You sleep with your phone in your pocket? That's really the thing doze is great at. If you forget to charge your phone, you wake up with still decent amount of battery left. Or for tablets sitting around on tables/desks.

No, I don't, but I don't often forget to hook up my phone to the charger.

I do however, sit/stand at my desk for 8-9 hours a day and maybe pull the phone out less than once an hour. I would like the phone to be in Doze mode when it's in my pocket, rather than forcing me to have to put it on my desk. As I said, I don't like leaving it unattended, even if it's simply to step away for a few minutes to the watercooler.

Re: First Preview of Android N: Developer APIs and Tools

#72
post #61

Earlier quoted context omitted.

> Prevent the NDK users that ignored the documentation and linked to non official platform libraries to keep doing that. I'm sorry, where in the article did you see that? I've looked twice and can't find it.

https://developer.android.com/preview/behavior-changes.html#... "Android N includes namespace changes to prevent loading of non-public APIs. If you use the NDK, you should only be using public APIs from the Android platform. Using non-public APIs in the next official release of Android can cause your app to crash."

Thanks!

Re: First Preview of Android N: Developer APIs and Tools

#73

Earlier quoted context omitted.

I find the fact that streams and functional interfaces are not backwards compatible almost a deal breaker. Using Java 8 streams makes so many things easier that once you start using it, there's no going back. Now you're not going to be able to use it in production till 2019.

When you say "not backwards compatible" do you mean that the streams and functional interfaces aren't compatible with Java in Android N or do you mean that they're not being to be ported to previous versions of Android?

As I understood the article, it seems they're not being ported to previous versions of Android.

Re: First Preview of Android N: Developer APIs and Tools

#74

Earlier quoted context omitted.

You sleep with your phone in your pocket? That's really the thing doze is great at. If you forget to charge your phone, you wake up with still decent amount of battery left. Or for tablets sitting around on tables/desks.

No, I don't, but I don't often forget to hook up my phone to the charger. I do however, sit/stand at my desk for 8-9 hours a day and maybe pull the phone out less than once an hour. I would like the phone to be in Doze mode when it's in my pocket, rather than forcing me to have to put it on my desk. As I said, I don't like leaving it unattended, even if it's simply to step away for a few minutes to the watercooler.

Sounds more like you want a setting of "syncing is not important to me"

Doze backs off sync period, trading timeliness for battery life. That's why significant motion prevents it from happening, it assumes that if it's on your person then syncing is important. Which is a generally true assumption.

Post reply on HN