Hello,

I've seen the documentation on the Android Site and different
examples, but I've not seen an example how a component A in one
package A can use the service of another package B.

The package B declares the service like that

        <service android:name=".SecondCounterService"
android:process=":remote">
                <intent-filter>
                        <action
android:name="de.android.examples.countersecond.SECOND_COUNTER_SERVICE" /
>
                </intent-filter>
        </service>

where  de.android.examples.countersecond.ISecondCounterService is the
AIDL-Interface, the
de.android.examples.countersecond.SecondCounterService is the service
implementation.

The component A from package A can start the service with
startService(new Intent
("de.android.examples.countersecond.SECOND_COUNTER_SERVICE"));

But I don't know how to bind the service. I have no reference to
ISecondCounterService and SecondCounterService. How can I use the
methods of the service when I cannot cast to ISecondCounterService in
the method
        public void onServiceConnected(ComponentName className,
                IBinder service) {}


Thank you in advance.

Best wishes,
Vladimir


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to