Android BOOT_COMPLETED not working!

1.3k views Asked by At

This is a simple program i created to test BOOT_COMPLETED event of Android but it's not working! am i doing something wrong here?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.enea.training.bootdemo"
      android:versionCode="1"
      android:versionName="1.0">

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <receiver android:name=".BootDemoReceiver">
            <Intent-filter>
                <action android:name ="android.intent.action.BOOT_COMPLETED"></action>
            </Intent-filter>
        </receiver>
    </application>

    <uses-sdk android:minSdkVersion="3" />

</manifest> 

java:

public class BootDemoReceiver extends BroadcastReceiver {

    static final String TAG = "BootDemoReceiver";

     @Override
     public void onReceive(final Context context, final Intent bootintent) {
         Log.v(TAG, "Come on");
     }
}
1

There are 1 answers

1
Dave On BEST ANSWER

I'm not sure if it matters, but try changing <Intent-filter> to <intent-filter> (note lowercase 'i').