BroadcastReceiver works for a while, then stops

扶醉桌前 提交于 2019-12-05 11:46:57

I think I may have solved this - although I'm new to developing and even using android phones...

In my HUAWEI phone, I have an option in my settings for "Protected Apps" - those which won't get killed.

I've had a look at a few friends android phones and have been unable to locate the same settings - So am I right to say it's a HUAWEI specific feature that compensates for a poor battery.

Can anyone confirm this is a HUAWEI specific issue?

David

u can try to set the priority .like this:

<intent-filter android:priority="1000">
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!