我不知道怎么命名了--- 2016-08-08 10:51 采纳率: 0%
浏览 3046
已结题

RuntimeException: bad array lengths

Fatal Exception: java.lang.RuntimeException: bad array lengths
at android.os.Parcel.readIntArray(Parcel.java:926)
at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:777)
at android.app.NotificationManager.notify(NotificationManager.java:272)
at android.app.NotificationManager.notify(NotificationManager.java:211)
at cc.netpas.android_firewall.service.BackgroundDaemon$3.run(BackgroundDaemon.java:297)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.os.HandlerThread.run(HandlerThread.java:61)

        设置通知栏时会发生以上错误,有哪位大神指点指点

        这是代码:
         private Runnable updateConnectedTimer = new Runnable() {
    @Override
    public void run() {

        if (BackgroundDaemon.this.connectedTime == 0) {
            BackgroundDaemon.this.connectedTime = System.currentTimeMillis();
        }
        long resultTime = System.currentTimeMillis() - connectedTime;
        Notification notification = showNotification(BackgroundDaemon.this, "", Utils.getElapsedTimeInFormat(resultTime));
        notificationManager.notify(0x100, notification);
        // }
        if (handler != null) {
            handler.postDelayed(this, 1000);
        }
    }
};
  • 写回答

3条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 优质github账号直接兑换rmb,感兴趣伙伴可以私信
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)