title: Service Intent must be explicit: Intent
body: <p>I have an app some time now in which I call a service through a broadcast receiver (MyStartupIntentReceiver). The code in the broadcast receiver in order to call the service is:</p>
  
  <pre><code>public void onReceive(Context context, Intent intent) {
      Intent serviceIntent = new Intent();
      serviceIntent.setAction("com.duk3r.eortologio2.MyService");
      context.startService(serviceIntent);
  }
  </code></pre>
  
  <p>The problem is that in Android 5.0 Lollipop I get the following error (in previous versions of Android, everything works ok):</p>
  
  <pre><code>Unable to start receiver com.duk3r.eortologio2.MyStartupIntentReceiver: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.duk3r.eortologio2.MyService }
  </code></pre>
  
  <p>What do I have to change in order for the service to be declared as explicit and start normally? Tried some answers in other similar threads but although i got rid of the message, the service wouldn't start.</p>