The Apps Android Learn to Differentiate between Day and Night to Better Adapt to The Environment

Google has opened the door to a new conception of the adaptation of the Smartphones a day and night. We are not talking about just change the brightness, from now on it will be possible to look more suitable for every moment thanks to a complete change of the theme of each app.

It is part of the latest update of libraries Android Support 23.2 Library, which also brings other changes that will appreciate the developers as more facilities to create context menus floating below, custom tabs to keep the appearance of the own app during a consultation from the same browser or the library Leanback that porting an app to Android TV with several standards already optimized.

Theme light and dark mode

AppCompat DayNight allows developers to create two different aspects for your applications, light and darkness. If the system considers that day will show one of them, and if you think that it is in the evening, the other. The location and time are the main values to determine it, though you can force.

The aim is that each version is optimized for the environmental conditions expected in each of the phases of the day. Thanks to this new API, each developer will have the option of creating a version that is less aggressive for the vista at night, so that aspect does not depend only on the level of brightness.

In the official blog is a very simple example: as you can see, the only thing they have decided to change the Bluetooth menu screen are, white background to black for the night and the day, and typography, inverted. Certainly this is the first thing that is going to come to head to any, but from here it will be the talent of each team that allows to see if this serves to do more than tweak place or put drawings.

Thinking about the battery?

One of the determining factors in the eternal battle of developers to bring your app to spend the least amount possible battery to the user is the visibility. Both design as brightness (and quality) of the screen affect energy expenditure. To solve the latest years we have self-adjusting lighting is minimize the consumption from the reading of a sensor, and numerous applications that manage it better than the automatic system.

But energy consumption has not been as priority when designing applications. In fact, although it is not its essence, the Meterial Design line that has been imposed in recent years the use of white power, with the associated cost of additional battery on dark colors in panels such as the AMOLED (there are several experiments in this regard, but here’s one of GreenBot if anyone still doubts).

It is not a revolution, but it can be one of these small advances, silent, that helps a lot to make the user experience much better once designers start to make sense.