title: "Launching" another app with services
body: <p>I have 2 different apps in 2 different Application Projects in Eclipse. I will call them H and G. Until now, I have been able to launch H from G by using</p>
  
  <pre><code>Intent intent = getPackageManager().getLaunchIntentForPackage("com.xxx.h");
  startActivity(intent);
  </code></pre>
  
  <p>This has been working great, but in reality, I don't really need the H app to launch, I just need to do something with that app in the background, so I started looking into services. So now I am trying to use</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setClassName("com.xxx.h","com.xxx.h.MyService");
  startService(intent);
  </code></pre>
  
  <p>But now I am getting the error saying </p>
  
  <blockquote>
    <p>W/ActivityManager(1044): Unable to start service Intent { cmp=com.xxx.h/.MyService } U=0: not found</p>
  </blockquote>
  
  <p>Very new to Services and even Intents so I am guessing it is something simple that I am missing and hoping you guys can help.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I fixed the issue with is saying that I was unable to start service intent.  That was fixed by including </p>
  
  <pre><code>service android:name=".MyService"
  </code></pre>
  
  <p>to the AndoirdManifest.xml in H.  Now I am getting </p>
  
  <blockquote>
    <p>E/AndroidRuntime(1022): java.lang.IllegalStateException: Could not execute method of the activity</p>
  </blockquote>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Found out it was not letting me start without permission so I had to include android:exported="true" in the AndroidManifest.xml as well</p>