android kitkat中启动完成时广播接收器未接收

android kitkat中启动完成时广播接收器未接收,android,android-intent,broadcastreceiver,bootcompleted,Android,Android Intent,Broadcastreceiver,Bootcompleted,在kitkat 4.4.4设备中启动后,它不工作。。请帮忙。。即使我在安装后运行了一次应用程序,但没有启动,然后启动,但结果相同。 ANdroidManifes.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.snaha.reminder1" > <

在kitkat 4.4.4设备中启动后,它不工作。。请帮忙。。即使我在安装后运行了一次应用程序,但没有启动,然后启动,但结果相同。 ANdroidManifes.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.example.snaha.reminder1" >
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE"/>
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <receiver android:process=":remote" android:name="AlarmReceiver"></receiver>
    <receiver
     android:name="com.example.snaha.reminder1.onBootComplete"
        android:enabled="true"
        android:exported="true"
        android:label="onBootComplete">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </receiver>
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

在接收器的意向过滤器中添加以下内容

  <intent-filter>
      <action android:name="android.intent.action.BOOT_COMPLETED" />
      <action android:name="android.intent.action.QUICKBOOT_POWERON" />
 </intent-filter>


解决了这个问题,我在SD卡上安装了应用程序,dsnt在引导接收器上支持它!,我在手机内存中重新安装了它,它成功了!:)

编辑:在onReceive(..)中,我从DB获取报警信息并重置报警,它在Emulator Android 5.1中启动,但在我的手机中不工作:(手机上的Toast在开机后甚至不会显示!!即默认情况下广播接收器工作,但在开机完成的情况下不工作您应该从您的
声明中删除
。这不是必需的,可能会导致问题。解决了问题,我在SD卡上安装了应用程序,在开机接收器上支持dsnt!,我重新安装了It在手机内存中,它工作了!:)
  <intent-filter>
      <action android:name="android.intent.action.BOOT_COMPLETED" />
      <action android:name="android.intent.action.QUICKBOOT_POWERON" />
 </intent-filter>