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. Combining Map view and List view

On Wed, Aug 4, 2010 at 5:10 AM, Anders Bromhagen <

I don't know about "best", but you have to have a MapActivity for a MapView.

I think you can have multiple activities within a TabActivity for the
contents, but I don't know about how much control over the tabs you have.
Based on posts I've seen, I don't think it's much.

If you want to smoothly transition between the two and they both represent
the same data, probably in the same activity.

What I would do is try to add a ViewSwitcher (or ViewFlipper?, not sure) to
the MapActivity with the MapView and ListView and use that to switch between
the two.

No, that's a View, you can't load activities into a View.

TreKing <> - Chicago
transit tracking app for Android-powered devices


2. Market trouble? Or else?

Kenapa ya tau2 ga bisa buka android market? Padahal tdnya lancar. I'm using
G1, non rooted (I think), donut 1,6. And body has the same problem maybe?

Kalo tyt ga bisa, apa mungkin ada virus gara2 salah install dr market?


Jerry Adiguna | Photojournalist
The Jakarta Post Daily Newspaper
Jakarta | Indonesia

"Indonesian Android Community [id-android]" 

3. How to start the Process to add a new Languge(Locale+Fonts) to the Android?

4. GroundOverLay / LatLonBox google maps

5. Froyo for Droid is here, download the file & get going!

6. need heelp droid jadi robot ijo

7. How to store questions for quiz type application