title: Service don't start after boot
body: <p>I have a service in my Android app that works perfectly if i started manually, but i need that service to start on boot, and i can't get it started automatically after rebooting the phone, i tryed several tutorials but nothing works.</p>
  
  <p>Here is my manifest code:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.tvshowsguide"
  android:versionCode="1"
  android:versionName="1.0"
  android:permission="android.permission.RECEIVE_BOOT_COMPLETED" &gt;
  
  &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
  &lt;application
  
      &lt;service android:name="androidservice.SyncService" /&gt;
  
      &lt;receiver android:name="androidservice.SyncAuto" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Here is the BroadcastReceiver code:</p>
  
  <pre><code>public class SyncAuto extends BroadcastReceiver {
          public void onReceive(Context context, Intent intent) {
  
              Intent SyncService = new Intent(context, SyncService.class).setAction(SRVC);
              context.startService(SyncService);
          }
      }
  }
  </code></pre>