how to use Remote Service?

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


Sponsored Links
 Hi
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
bind,play,stop,unbind.
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
Activity.
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.
thanks
Gun.

--



Other Threads

1. Scroll text inside the button

Hi,


Is it possible to scroll the text inside the button.


Thanks and Regards,
Mayank

-- 

2. Mobclix SDK x Garbage Colletor

Hello fellow android developers.

Id like to ask a question to you who are using or have tried using
Mobclix for Android.
Ive developped a free metronome app (mobile metronome) which display
advertising and updates it periodically. Unfortunately I dont have a
real device on my hands right now so all my tests are being done on th
Emulator (1.5, 1.6 and 2.1).
After fixing a bug which wasnt allowing me to access the internet
from the emulator, I started to notice a click "lag" everytime a new
ad was displayed. I went to check on logcat and it was related to
garbage collectors calls.
Ive then disabled ads to check if it was related to the mobclix sdk
and the GC calls were gone, which led me to the conclusion that every
advertising exhibition lead to a GC call.
If thats true, it turns out that its impossible to show ads on any
"critical path" (in my case a metronome operating, but could also be
during a game, image processing, etc...). Have you been facing the
same problems? Is its effects also so noticeable on real devices?

Tnx,
Gabriel Simes

-- 

3. Application not installed - anyone have thoughts as to why?

4. Application not installed - anyone have thoughts as to why?

5. AVD emulator question...

6. Ads in apps... How to successfully generate a larger revenue?

7. Google Search