

When I ran the app, this error appears in the logcat:Ĭaused by: : You need to use a Theme.AppCompat theme (or descendant) with this activity.Īt 7.(ActionBarActivityDelegate.java:151)Īt 7.(ActionBarActivityDelegateBase.java:138)Īt 7.(ActionBarActivity.java:123)Īt .onCreate(MainActivity.java:171)Īt (Activity.java:5104)Īt (Instrumentation.java:1080)Īt (ActivityThread.java:2144)Īt (ActivityThread.java:2230)Īt $600(ActivityThread.java:141)Īt $H.handleMessage(ActivityThread.java:1234)Īt android.os.Handler.dispatchMessage(Handler.java:99)Īt android.os.Looper.loop(Looper.java:137)Īt (ActivityThread.java:5041)Īt .invokeNative(Native Method)Īt .invoke(Method.java:511)Īt .ZygoteInit$n(ZygoteInit.java:793)Īt .ZygoteInit.main(ZygoteInit.java:560)Īt.

We can do so manually or let Android detect the time of the day implicitly from your phone. Thanks to this theme, we can now toggle between the light and dark modes of our application. Drawable / apptheme_edit_text_holo_light style / ButtonAppTheme style / ImageButtonAppTheme drawable / apptheme_btn_default_holo_light drawable / apptheme_btn_default_holo_light Android released a new theme: with the support library 23.2.0.
