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. Notification doubt

is there a way to read a Notification in the program (via code!!!)?


2. Widget developer tired of "Doesn't launch" comments


About one-fourth of comments for my widget on the market are "Doesn't
launch" with 1-star rating. Are you guys having the same problem? I've
already included the instructions at the top of app's description but
doesn't help. Here are the solutions I'm thinking about but don't know
how to implement them yet.

1. Having a default activity showing a help page. But this would
clutter the app tray with another useless app icon. Can I hide the app
icon from launcher after first launch?

2. Launch widget picker activity from the market open button. But this
doesn't tell users how to add widgets later on. Is it possible to set
AndroidManifest.xml to open widget picker as default activity?



3. How to investigate current branches?

4. what are the main properties the video file must have to be played in android device?


6. Force Close on startActivityForResult since 1.5 update on phones but not emulator

7. restart the phone to view the captured images in gallary