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. Source code for the latest emulator of Android 2.0

I searched but could not find the source code for the latest emulator.
The emulator is based on QEMU source. In the past, several versions of
its source were published. Has Google published the new one yet?

Thanks.

-- 

2. linux kernel programming!.

hi hello

im a mobile phone beginner programmer in korea company
(it is very big company. you may know this compnay's name.L~)
(but im not this company's employee. im a this company's corporation
company's employee.)
 frankly speaking, i wanted to be a linux programmer.
 after i graduated university. i have trained how to use and
programming in embedded linux.
 when i was ready to last embedded linux project. i got a job.
i entered this company. moblie phone programming is embedded
programming. but developer doesn't use linux.
 but i decided to work in this company.
 i have worked for two month. it is very boring.
 my assigned task is mobile phone's token.
it is very easy task and i have many free time because of it
but my worry is like this.
my first job is not linux developer. after i work for 1 year in this
company (not linux, just special platform used) can i move to other
linux company?

yappp  my first article please welcome to this group
wow i interested in android and linux. my toy held android kernel.
please let me be your friendly member.

good bye.

ps.. i  don't like winter. i'don like be alone in X-mas.
      but this week is 10's last week.
      i hope you are not alone in this x-mas



--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Using the Eclipse debugger?

4. Downloading and using .so on the fly

5. How to change the height of a view

6. Paid apps supported in Canada?

7. Dev Tools Documentation?