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

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 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题