How to fix “process is bad” error for an Android Widget?

前端 未结 14 964
太阳男子
太阳男子 2020-12-02 07:44

I have developed an Android Widget, and it was working fine. I added some extra functionality and pushed an update through the Android Market. Now people are complaining tha

14条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 08:37

    The "process is bad" is due to multiple crashes of the app (or BroadcastReceiver, Service, or other component). After a few of these the system decides it's fed up with that behavior and prevents the process from starting again.

    A reboot will clear the crash count but it can also be cleared by killing the system server:

    adb shell killall system_server
    

    This will effectively do a "soft reboot." I find it much quicker than an actual reboot.

提交回复
热议问题