title: How do I Connect to remote service from a different .apk
body: <p>First off I have seen this:</p>
  
  <p><a href="https://stackoverflow.com/questions/6899231/remote-service-as-apk">Remote Service as apk</a></p>
  
  <p>And it does not help me at all.  Here is the deal.  I have one apk that creates a remote service (call it A).  I then have another apk (call it B).  How can I connect B to A without include the AIDL file or a jar file.  I would think that this would be possible. </p>
  
  <p>** UPDATE **</p>
  
  <p>So I have copied the AIDL file into B and created an  to the service in A for the AIDL file.  I can conntect to the remote service, and bind to the service now.  However when I try to call a method that exists in the service I get:</p>
  
  <p>java.lang.SecurityException: Binder invocation to an incorrect interface</p>
  
  <p>Having trouble finding any help on this.  Any ideas?</p>
  
  <p>** PROBLEM SOLVED **
  The AIDL file had to be in a package with the same name in the project B.  Thanks for your help Peter.</p>