Android BroadcastReceiver未接收到意图。操作\电池电量低

Android BroadcastReceiver未接收到意图。操作\电池电量低,android,service,broadcastreceiver,Android,Service,Broadcastreceiver,我写了一个应用程序,当充电等级为15%或更低时,会显示一个对话框。 问题是,在一个论坛上,我收到一条消息,说它在谷歌NexusS(I9023)上不起作用。MIUI 2.3.7c 接收方代码为(已在清单中注册): 在服务中,我注册了具有过滤器意图的接收器。操作\电池\更换。 服务代码为: ... if (batteryLevel == mLowLevelAlarm) { if (prefView.getBoolean(PREF_LOW_CHARGE_ON, true)) {

我写了一个应用程序,当充电等级为15%或更低时,会显示一个对话框。 问题是,在一个论坛上,我收到一条消息,说它在谷歌NexusS(I9023)上不起作用。MIUI 2.3.7c

接收方代码为(已在清单中注册):

在服务中,我注册了具有过滤器意图的接收器。操作\电池\更换。 服务代码为:

...
if (batteryLevel == mLowLevelAlarm)
{
    if (prefView.getBoolean(PREF_LOW_CHARGE_ON, true))
    {
         myIntent = new Intent(MyService.this, BatteryLow.class);
         myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         startActivity(myIntent);
    }
}
...
有人能帮忙解决这个问题吗?
thx

您找到解决方案了吗?我面临着类似的问题:(如果你找到了一个解决方案,请把它作为答案加上。)。
...
if (batteryLevel == mLowLevelAlarm)
{
    if (prefView.getBoolean(PREF_LOW_CHARGE_ON, true))
    {
         myIntent = new Intent(MyService.this, BatteryLow.class);
         myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         startActivity(myIntent);
    }
}
...