Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 10 T10.03-Exercise-NotificationActions notification error on 4.4.2 #331

Open
tovouk opened this issue Mar 28, 2018 · 0 comments
Open

Comments

@tovouk
Copy link

tovouk commented Mar 28, 2018

So when I add addAction to the NotificationCompat.Builder the test notifications crash the app with the following error:

03-27 23:01:07.552 7530-7530/com.example.android.background E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.android.background, PID: 7530 android.app.RemoteServiceException: Bad notification posted from package com.example.android.background: Couldn't expand RemoteViews for: StatusBarNotification(pkg=com.example.android.background user=UserHandle{0} id=1138 tag=null score=10: Notification(pri=1 contentView=com.example.android.background/0x1090064 vibrate=default sound=null defaults=0x2 flags=0x10 kind=[null] 2 actions)) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1367) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606) at dalvik.system.NativeStart.main(Native Method)

This happens on my Lg device running 4.4.2 and another using 4.4.4 but works on my other devices just fine. I'll continue to look into this in the coming days, but if anyone knows what the cause is, please feel free to share for myself and others. The link to my current code is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant