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

前端 未结 14 939
太阳男子
太阳男子 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:45

    Happened to me when my BroadcastReceiver was repeatedly leaking an exception causing the system to kill my app. The next calls to the receiver would result in the "process is bad" logs.

    The solution in my case was making sure no exceptions leak from the BroadcastReceiver.

    Those are the logs when the app is killed (try looking for them and finding the cause):

    W/ActivityManager﹕ Process com.company.app has crashed too many times: killing!
    I/ActivityManager﹕ Killing proc 9344:com.company.app/u0a10239: crash
    

提交回复
热议问题