How does 2 different package share the same aidl interface?

by payre...@gmail.com » Fri, 17 Jul 2009 01:53:47 GMT


Sponsored Links
 Hi Android Developers,

I would like to ask you how do I access an remote service from an
application which is in a different package.

e.g.  remote service is in the package: com.android.appService
       application is in the package com.applications.sampleApp

I have gotten to the stage where the application is able to create and
start the service, but when I try to call one of the methods
implemented in the application service, i get an error that looks like
the following:

W/Parcel  (  319): **** enforceInterface() expected
'com.android.appService' but read
'com.applications.sampleApp'

Currently, the same aidl file is both packages to prevent linking
errors, but it looks like the application is trying to call the method
stub from the aidl in the application package. What I'm confused is
that, when I do the bindservice, the instance of the service should be
returned to the application, and any method calls should be directed
to service aidl stubs rather than the application aidl stub.

I found a thread that had a similar problem, but that thread ended
without an obvious resolution.

Please advise on this problem that I'm facing.

Many thanks,
Peter

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Front Camera di Xperia X10

Mohon pencerahan dari para suhu,

Di Sony Ericsson X10 kan ada kamera depan tuh, kira-kira ada yang tau ga
fungsinya buat apa?
Buat video call, ga tau gimana cara penggunaannya..
Buat video - skype, emang dah bisa? Ada yang pernah coba?
Buat foto-narsis, kok ga bisa deh kayanya..?

Ada yang bisa membantu kah?

Salam,
uam

-- 
"Indonesian Android Community [id-android]" 

2. Access active window from a background service

I hope not.



> 

3. SocketChannel, broken pipe exception - Cupcake only

4. Access active window from a background service

5. Translucent theme turns black when using startActivityForResult

6. problem in installing ADT Plugin for Eclipse

7. RelativeLayout bug ?