I am trying to create a RemoteService that runs in its own process.
For that I created a service in a separate APK with the corresponding
aidl file.

In another APK,
I copied the aidl file of the Service, so that I have interfaces to
the RemoteService. The corresponding .java file is generated.
In my calling application, I am able to do, Intent i = new Intent
("com.xxx.yyy.RemoteService.REMOTE_SERVICE");
                i.setClassName("com.xxx.yyy",
                                "com.xxx.yyy.RemoteService");
                ComponentName name = this.startService(i);

Till here, it works fine.

Now, I bind to the RemoteService and in OnServiceConnected
(ComponentName name, IBinder service), and I do

mService = IRemoteService.Stub.asInterface(service);
mService.myMethod()  --> This does not invoke myMethod in the
RemoteService APK, by just executes the myMethod in the proxy class in
the java file generated from the aidl file.

How do I ensure that myMethod() in the separate process is called?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to