how to use Remote Service?

by VoCaLiSt » Fri, 23 Apr 2010 12:38:34 GMT

Sponsored Links
i`m trying to use Remote Service btween two simple application, But
it`s not easy to me.
So any advice you have will help me.

here`s my case.

I made one app which is playing Music in service,
There are two components.
one is Activity controlling service by using three buttons,
play,pause, stop.
and it is working fine.

and another one is just simple Activity which also has four buttons
when i click bind, it`s confirmed by Toast msg, but when i click play
button,it occurs error.

i want to control first activity`s Music playing service in second
So i`m trying to use remote service.
i made same .aidl file in each app project.
In aidl file, i defined methods  "playing","stoping"
and i implement those methods in Music service class,
implementation is simply use intent and startService & stopService.

In DDMS there is "java.lang.SecurityException : Binder invocation to
an incorrect interface"
that`s the case  what i`m doing.

So please tell me what`s the problem.
any advice could help me.


Other Threads

1. Attaching G1 to adb

Hi all

I have to restart the computer every time I attach G1 through the USB cable
to get it detected by "adb devices" command
Is there any other way so that I need not restart the computer ?
I am using Linux on my computer


2. delete my app on G1

I am able to delete my app on the emulator either using adb or the
file explorer on ddms. However,  I have been having trouble deleting
my app on G1. I get 'permission denied' when I use adb to browse the
data directory. I cannot expand the 'data' folder on the file explorer

Any ideas what I am missing?

Thanks in advance for your help!

3. Server timeouts while attempting download android source

4. Installing Android on different Handsets than G1?

5. how the library files (c, c++) are linked with framework (java files)

6. How to make a desktop widget?

7. Cannot compile Android app: "Failed to create debug key"