title: Android start service of an app from another android app
body: <p>I have two applications installed on the device: from one app I want to start a service as follows:</p>
  
  <pre><code>Intent i = new Intent();
     i.setComponent(new ComponentName("com.app.service",    "com.app.service.NotificationService"));
    context.startService(i);
  </code></pre>
  
  <p>The second app is only installed but not started.</p>
  
  <p>What I want is to start the notification service(which should create a notification) from the second service by using the above code.</p>
  
  <p>In the manifest file of the second app I declare the service as follows:</p>
  
  <pre><code>&lt;service
          android:name=".service.NotificationService"
          android:exported="true" /&gt;
  </code></pre>
  
  <p>The problem is that the Notification Service from the second app does not start.</p>
  
  <p>Any ideas on why this happens?</p>