Which really sucks. That was one of my favorite parts of Allo. I wasn't a fan of the style, but it would have been a great app if they had just made it look like their other apps, and tied in the SMS capability.
I loved being able to send interactive parts of Google searches, and map results. I was really looking forward to having that functionality built into large parts of Android, but I guess that's just never seeing the light of day.
For any developers, sunrise and sunrise is a calculated value. You don't need to use a third-party provider to give you it.
It makes sense since, you know, it's Earth rotating and spinning around the Sun. It's very unlikely those numbers will change short of an asteroid hitting us.
Timezone data is irrelevant. That's just how you present it to the user. Those are human inventions. Just use Locale to change it to something other than UTC based on the user's preference.
The time is calculated based on the position of the Earth represented by latitude and longitude. You pick a starting date with known value and extrapolate from there. This library uses January 1st, 2000 12:00 and works from there.
I've been using the hidden Android 10 automatic dark mode (based on sunrise/sunset in theory) and the biggest problem is that switching dark mode resets some screens, eg if you're in a web page when it toggles, the page gets reloaded. Maybe Google is doing something about that before making this feature public facing again
459
u/armando_rod Pixel 10 Pro XL Feb 19 '20
The emulator has dark theme schedule for sunrise/sunset or custom