I have create one app with build version 5.0 I have write theme below
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimaryDark">@color/actionbar_color</item>
<item name="colorPrimary">@color/actionbar_color</item>
<item name="colorAccent">@color/actionbar_yellow_color</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:textColorPrimary">@color/edit_text_color</item>
<item name="android:windowBackground">@drawable/ic_app_background</item>
</style>
When I set actionbar_color="#4DFFFFFF" My app is crashed. If I used any non alpha color it's works fine I mean If I set color code for actionbar_color="#FFFFFF" Its works fine.
Error is :A TaskDescription's primary color should be opaque I have checked this solution Android 5.0: howto change Overview Screen Task Title background color but got same error for alpha color. I have follow this for opacity color Hex transparency in colors
Crash Log
03-20 05:59:41.323: E/AndroidRuntime(2133): FATAL EXCEPTION: main 03-20 05:59:41.323: E/AndroidRuntime(2133): Process: com.mytaxback, PID: 2133 03-20 05:59:41.323: E/AndroidRuntime(2133): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mytaxback/com.mytaxback.LoginActivity}: java.lang.RuntimeException: A TaskDescription's primary color should be opaque 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityThread.access$800(ActivityThread.java:144) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.os.Handler.dispatchMessage(Handler.java:102) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.os.Looper.loop(Looper.java:135) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityThread.main(ActivityThread.java:5221) 03-20 05:59:41.323: E/AndroidRuntime(2133): at java.lang.reflect.Method.invoke(Native Method) 03-20 05:59:41.323: E/AndroidRuntime(2133): at java.lang.reflect.Method.invoke(Method.java:372) 03-20 05:59:41.323: E/AndroidRuntime(2133): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) 03-20 05:59:41.323: E/AndroidRuntime(2133): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) 03-20 05:59:41.323: E/AndroidRuntime(2133): Caused by: java.lang.RuntimeException: A TaskDescription's primary color should be opaque 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityManager$TaskDescription.(ActivityManager.java:536) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.Activity.onApplyThemeResource(Activity.java:3677) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:140) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:85) 03-20 05:59:41.323: E/AndroidRuntime(2133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2244) 03-20 05:59:41.323: E/AndroidRuntime(2133): ... 10 more
I faced this issue in 5.0 OS emulator. Its works fine with ICS, KITKAT Give me any suggetions. Thanks,