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. Bluetooth - Health Device Profile (HDP) and Continua

I am trying to build an application that connects to Continua
certified client devices using Bluetooth. The primary problem I have
run into is that I cannot create a service discovery profile (SDP)
because it crashes when I try to call sdp_record_register.  I could
have a bug in my code, but from my research it looks like the process
requires root permission to register the SDP record.

I used a code sample from 
http://people.csail.mit.edu/albert/bluez-intro/x604.html
to try and register a RFCOMM SDP record and added log statements so I
know it is the call to sdp_record_register that is failing.

Am I correct with my assumption that it is not possible to create SDP
records and therefore not possible to implement Bluetooth HDP?

If I am wrong, can you point me in the correct direction to implement
the Bluetooth HDP with implementing the Continua Specification as the
final goal?

If I am correct, who can I work with and/or what steps can I take to
help make the Bluetooth HDP part of the official Android SDK?

Thank you,
-John

-- 

2. Install the Apk

Hi,

 I am new in android. I need to create the shortcut icon for .apk in
my desktop while installing my apk in mobile.

It is possible?
May i know wht the command for that?

Thank you for your help !

Thanks
Rajesh

-- 

3. WiFi proxy issue in android, solution

4. Sideline install to device using Barcode Scanner to phone without SD card

5. Droid browser fixed positioning

6. Jess.jar on Android

7. GET 300 Free instant Backlinks!