r/Android • Dark Pink • Feb 19 '20

Android 11 Developer Preview | Android Developers

https://developer.android.com/preview/
1.8k Upvotes

310 comments sorted by

View all comments

459

u/armando_rod Pixel 10 Pro XL Feb 19 '20

The emulator has dark theme schedule for sunrise/sunset or custom

76

u/ShortFuse SuperOneClick Feb 19 '20

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.

6

u/datadude3 Google Pixel XL, 7.1.1; Moto X 2014, 5.1; Nexus 9, 7.0 Feb 20 '20

Unfortunately, you do need the user's location to do this calculation, which can be a pretty tough sell to get that permission for a lot of apps.

2

u/ThellraAK Feb 20 '20

Now I am wondering how tough it would be to get a users location given sunset sunrise time if Android provided that directly.

→ More replies (1)
→ More replies (1)