Score ecoCode: 2sur5

Developers are allowed to apply native themes for their app, or derive new ones through inheritance. This decision has a significant impact on energy consumption since displaying dark colors is particularly beneficial for mobile devices with (AM)OLED screens.

By default, Android will set Holo to the Dark theme (parent style Theme.Holo) and hence switching to the light theme (parent style Theme.Holo.Light) within the manifest or in xml themes should be avoided.

Noncompliant Code Example

<style name="Theme.MyTheme" parent="@android:style/Theme.Holo.Light"/>

or

<application android:label="@string/app_name" android:theme="@android:style/Theme.Holo.Light"/>

Compliant Solution

<style name="Theme.MyTheme" parent="@android:style/Theme.Holo"/>

or

<application android:label="@string/app_name" android:theme="@android:style/Theme.Holo"/>