title: Android 6.0 Marshmallow - Service not starting on test with API 23, works fine on API 21
body: <p>I have the following test Service. It runs fine on API 21, but on API 23 the service doesn't start. </p>
  
  <p>I have gone through the API change docs, but cannot see anything like changes to registration, etc. </p>
  
  <p>This exact code is working on API 21. What am I missing?</p>
  
  <p>Manifest segment:</p>
  
  <pre><code>&lt;service
      android:name="com.mytest.service.TestService"
      android:label="@string/app_name"
      android:permission="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
  </code></pre>
  
  <p>MainActivity segment:</p>
  
  <pre><code>this.startService(new Intent(this, TestService.class));
  </code></pre>
  
  <p>Service:</p>
  
  <pre><code>public class TestService extends Service
  {
      @Nullable
      @Override
      public IBinder onBind(Intent intent)
      {
          return null;
      }
  
      @Override
      public int onStartCommand(Intent intent, int flags, int startId)
      {
          Log.d("OOP", "onstartTest");
          return super.onStartCommand(intent, flags, startId);
      }
  }
  </code></pre>