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

前端 未结 14 862
太阳男子
太阳男子 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
    
    0 讨论(0)
  • 2020-12-02 08:45

    I had the same problem. I got to a point where restarting and reinstalling the application didn't solve the problem. I was frustrated. I removed everything from the class that extended AppWidgetProvider, and run the application with only two empty methods in it: onUpdate and onReceive. Finally solved the problem.

    Maybe it will not solve yours, but who knows. Give it a try.

    0 讨论(0)
提交回复
热议问题