Hello,

is it possible to declare an aidl interface and to bind to service
which implements in a APK, and to write the implementation of this
service in another APK?

My service is com.my.implementationService which extends Service.
Its inner class com.my.implementationService.MyBinder extends the
interface stub IMyInterface.Stub.

I got these errors and warnings :


07-08 14:48:48.550: WARN/dalvikvm(1047): Unable to resolve superclass
of Lcom/my/implementationService$MyBinder; (12)
07-08 14:48:48.550: WARN/dalvikvm(1047): Link of class 'Lcom/my/
implementationService$MyBinder;' failed
07-08 14:48:48.550: ERROR/dalvikvm(1047): Could not find class
'com.my.implementationService$MyBinder', referenced from method
com.my.implementationService.<init>
07-08 14:48:48.550: WARN/dalvikvm(1047): VFY: unable to resolve new-
instance 16 (Lcom/my/implementationService$MyBinder;) in Lcom/my/
implementationService;
07-08 14:48:48.550: WARN/dalvikvm(1047): VFY:  rejecting opcode 0x22
at 0x0003
07-08 14:48:48.550: WARN/dalvikvm(1047): VFY:  rejected Lcom/my/
implementationService;.<init> ()V
07-08 14:48:48.560: WARN/dalvikvm(1047): Verifier rejected class Lcom/
my/implementationService;
07-08 14:48:48.560: WARN/dalvikvm(1047): Class init failed in
newInstance call (Lcom/my/implementationService;)
07-08 14:48:48.560: DEBUG/AndroidRuntime(1047): Shutting down VM
07-08 14:48:48.560: WARN/dalvikvm(1047): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
07-08 14:48:48.560: ERROR/AndroidRuntime(1047): Uncaught handler:
thread main exiting due to uncaught exception
07-08 14:48:48.570: ERROR/AndroidRuntime(1047): java.lang.VerifyError:
com.my.implementationService
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.Class.newInstanceImpl(Native Method)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.Class.newInstance(Class.java:1472)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2446)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread.access$2800(ActivityThread.java:112)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1744)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.os.Handler.dispatchMessage(Handler.java:99)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.os.Looper.loop(Looper.java:123)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.reflect.Method.invokeNative(Native Method)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.reflect.Method.invoke(Method.java:521)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
dalvik.system.NativeStart.main(Native Method)
07-08 14:48:48.579: INFO/Process(567): Sending signal. PID: 1047 SIG:
3

--~--~---------~--~----~------------~-------~--~----~
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