ANDROIDRUNTIME:ANDROID.APP.REMOTESERVICEEXCEPTION:BAD notification posted from package

Source: Internet
Author: User

When you create a custom notification view using RemoteView, the start notification bar app stops running.

To view the error prompt, start with

statusbar:caused By:android.content.res.resources$notfoundexception:file Res/drawable/fm_statusbar_clear.xml from drawable Resource ID #0x7f02003f

The resource was not found, and the use method was adjusted to show

04-11 18:54:27.542 21850 21850 E AndroidRuntime:android.app.RemoteServiceException:Bad Notification posted from the package Com.xxx.yyy:Couldn ' t create Icon:statusbaricon (pkg=com.xxx.yyyuser=0 id=0x7f020059 level=0 visible=true num=0)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.app.activitythread$h.handlemessage (ActivityThread.java : 1448)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.os.Handler.dispatchMessage (handler.java:102)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.os.Looper.loop (looper.java:135)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.app.ActivityThread.main (activitythread.java:5258)
04-11 18:54:27.542 21850 21850 E androidruntime:at java.lang.reflect.Method.invoke (Native Method)
04-11 18:54:27.542 21850 21850 E androidruntime:at java.lang.reflect.Method.invoke (method.java:372)
04-11 18:54:27.542 21850 21850 E androidruntime:at com.android.internal.os.zygoteinit$methodandargscaller.run ( zygoteinit.java:907)
04-11 18:54:27.542 21850 21850 E androidruntime:at com.android.internal.os.ZygoteInit.main (zygoteinit.java:702)

The reason for this is the lack of drawable resources for this resolution. The previous adaptation was only suitable for a 1080 resolution, and the new model was 720 resolution. This causes the above error.

ANDROIDRUNTIME:ANDROID.APP.REMOTESERVICEEXCEPTION:BAD notification posted from package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.