title: Standalone IntentService error: Unable to start service Intent {act = com.example.. pkg=com.example.somepkg} U=0: not found
body: <p>I am trying to start a standalone intent service from another android client application, and I cannot for the life of me get it working even after spending hours looking online.</p>
  
  <p>The error is as follows:</p>
  
  <blockquote>
    <p>04-02 16:40:32.052  2131  6557 W ActivityManager: Unable to start service Intent { act=com.example.zorro.Slash pkg=com.example.cookie } U=0: not found</p>
  </blockquote>
  
  <p>The apps are as follows:</p>
  
  <p>Intent Class:</p>
  
  <pre class="lang-java prettyprint-override"><code>package com.example.zorro;
  
  import android.app.IntentService;
  import android.content.Intent;
  import android.util.Log;
  
  import androidx.annotation.Nullable;
  
  public class Slash extends IntentService {
      /**
       * Creates an IntentService.  Invoked by your subclass's constructor.
       *
       * @param name Used to name the worker thread, important only for debugging.
       */
      public Slash(String name) {
          super(name);
      }
  
      private static final String TAG = "ZORRO";
      @Override
      protected void onHandleIntent(@Nullable Intent intent) {
          Log.d(TAG, "Hello world from Zorro Service");
  
      }
  }
  </code></pre>
  
  <p><strong>Intent Service AndroidManifest.xml:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.zorro"&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme" &gt;
          &lt;service android:name="com.example.zorro.Slash" android:enabled = "true" android:exported = "true" /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>Client App Code:</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>package com.example.cookie;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  import android.content.Intent;
  import android.os.Bundle;
  
  public class MainActivity extends AppCompatActivity {
  
      Intent serviceIntent = new Intent();
  
      @Override
      protected void onStart() {
          super.onStart();
  
          serviceIntent.setAction("com.example.zorro.Slash");
          serviceIntent.setPackage(this.getPackageName());
          startService(serviceIntent);
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  }
  </code></pre>
  
  <p>First from Android Studio I build the intent service and load it to the emulator via the run button. I set the launch options to <strong>Nothing</strong> and the <strong>Deploy</strong> to <strong>Default APK</strong>.</p>
  
  <p>The client application I run on the same emulator from a different android studio instance.</p>
  
  <p>Any ideas would be appreciated.</p>