[android-developers] Re: How to access a AIDL service from different packages?

2012-12-13 Thread Nguyen Dat
Hi Priyank, Problem belong this step: I have exported this in the source code of the application as import com.VMService; you don't need to do this step because because aidl generate Java interface, refer: http://developer.android.com/tools/building/index.html i guest your error come because

[android-developers] Re: How to access a AIDL service from different packages?

2010-06-30 Thread Priyank
Hi, I am kind of facing a similar problem with my project. I have an existing project which has 2 parts. Services module and Application module. The VMService.aidl file is in a package in the services. When the service module is compiled, the generated VMService.java file appears in the /gen

[android-developers] Re: How to access a AIDL service from different packages?

2010-06-24 Thread Krishna Shetty
It became clear now. Thank you Mark. The problem was, I am having my AIDL interface in a different package. And I have included the same AIDL interface package in both Service and Client application. But the intent-filter of the Service had action string with package name of the Service. So

[android-developers] Re: How to access a AIDL service from different packages?

2010-06-23 Thread Krishna Shetty
Thank you very much Mark, Joe. But below call i.e., binding with the Interface name is not working. I got the same error, not able to bind, service not found.. bindService(new Intent(IScript.class.getName()), svcConn, Context.BIND_AUTO_CREATE); But, below way of binding works. i.e., Binding

Re: [android-developers] Re: How to access a AIDL service from different packages?

2010-06-23 Thread Mark Murphy
On Wed, Jun 23, 2010 at 9:57 AM, Krishna Shetty krishna.shett...@gmail.com wrote: Thank you very much Mark, Joe. But below call i.e., binding with the Interface name is not working. I got the same error, not able to bind, service not found.. bindService(new Intent(IScript.class.getName()),

[android-developers] Re: How to access a AIDL service from different packages?

2010-06-18 Thread Joe Onorato
You will also have to include the .aidl as source in your other project. The two different apks don't link against each other or anything like that. Otherwise, the generated java class won't be available. -joe On Jun 18, 7:44 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 18,