Trouble starting my Android service on boot
<h2>I am having trouble starting my service on boot.</h2>

<p>I have a broadcast receiver that should get called whenever the device boots up (it isn't) , and it starts my service. Unfortunately, the service isn't starting!</p>

<p>I have looked at <a href="https://stackoverflow.com/questions/2784441/trying-to-start-a-service-on-boot-on-android">this</a> page, read every answer, and followed every step...but it is still not working. I want to start my service whenever the phone restarts/powers on.</p>

<hr>

<pre><code>package curlybrace.ruchir.myApp;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootUp extends BroadcastReceiver {

    private static final String TAG = "myTag";

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.

        Log.v(TAG, "Hooray! Received boot! :) "); //Sadly I am not getting this message

        Intent startServiceIntent = new Intent(context, MyService.class);
        context.startService(startServiceIntent);



    }
}
</code></pre>

<p>But my service still wont start. Here is my manifest:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="curlybrace.ruchir.myApp"
    android:installLocation="internalOnly"&gt;

    &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;

    &lt;uses-permission android:name="android.permission.VIBRATE"/&gt;

    &lt;uses-permission android:name="android.permission.SEND_SMS"/&gt;


    &lt;application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"&gt;
        &lt;activity android:name=".MainActivity"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity
            android:name=".Settings"
            android:label="@string/title_activity_settings"
            android:theme="@style/Theme.AppCompat.Light.NoActionBar" /&gt;

        &lt;service
            android:name=".MyService"
            android:enabled="true"
            android:exported="true" /&gt;




        &lt;receiver
            android:name=".BootUp"
            &gt;

            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.RECIEVE_BOOT_COMPLETED" /&gt;
                &lt;action android:name="android.intent.action.QUICKBOOT_POWERON" /&gt;
            &lt;/intent-filter&gt;

        &lt;/receiver&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p><strong>I have been stuck on this for the last three days,</strong> and I would really appreciate your help. Why is my service not starting on boot?</p>