[android-developers] Re: Problem in using remote service from other App

2009-09-24 Thread Rahul Bhagwat

I found out the way. client should include aidl files in the project
creating same package.
Doing this above problem got solved but I'm facing one more problem.
I'm sending custom object in callback, So I've implemented it using
Parcelable. But client can not find the reference to this object ,
resulting following error
09-24 14:25:13.082: WARN/dalvikvm(1392): VFY: unable to find class
referenced in signature (Lcom/sasken/dlna/dmcRemService/DeviceList;)


On Sep 24, 11:30 am, Rahul Bhagwat rahul3...@gmail.com wrote:
 I’ve implemented remote service using aidl  it is working fine if I’m
 using its service from same package. But If I tried to use the service
 from other application it gives me error

  as below

 09-24 10:51:08.051: ERROR/dalvikvm(795): Could not find method
 com.sasken.dlna.dmcRemService.IRemDlnaService$Stub.asInterface,
 referenced from method com.sasken.TestDlnaApp.TestDlnaRemService
 $5.onServiceConnected

 09-24 10:51:08.051: WARN/dalvikvm(795): VFY: unable to resolve static
 method 26: Lcom/sasken/dlna/dmcRemService/IRemDlnaService
 $Stub;.asInterface (Landroid/os/IBinder;)Lcom/sasken/dlna/
 dmcRemService/IRemDlnaService;

 09-24 10:51:08.063: WARN/dalvikvm(795): VFY:  rejecting opcode 0x71 at
 0x0002

 09-24 10:51:08.063: WARN/dalvikvm(795): VFY:  rejected Lcom/sasken/
 TestDlnaApp/TestDlnaRemService$5;.onServiceConnected (Landroid/content/
 ComponentName;Landroid/os/IBinder;)V

 09-24 10:51:08.063: WARN/dalvikvm(795): Verifier rejected class Lcom/
 sasken/TestDlnaApp/TestDlnaRemService$5;

 Pls suggest any solution
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem in using remote service from other App

2009-09-24 Thread Rahul Bhagwat

Again I got the solution for above problem.
If you are using custom object passing from service to client ,
implemented using Parcelable,
you have to provide source code of object to client.

On Sep 24, 2:08 pm, Rahul Bhagwat rahul3...@gmail.com wrote:
 I found out the way. client should include aidl files in the project
 creating same package.
 Doing this above problem got solved but I'm facing one more problem.
 I'm sending custom object in callback, So I've implemented it using
 Parcelable. But client can not find the reference to this object ,
 resulting following error
 09-24 14:25:13.082: WARN/dalvikvm(1392): VFY: unable to find class
 referenced in signature (Lcom/sasken/dlna/dmcRemService/DeviceList;)

 On Sep 24, 11:30 am, Rahul Bhagwat rahul3...@gmail.com wrote:



  I’ve implemented remote service using aidl  it is working fine if I’m
  using its service from same package. But If I tried to use the service
  from other application it gives me error

   as below

  09-24 10:51:08.051: ERROR/dalvikvm(795): Could not find method
  com.sasken.dlna.dmcRemService.IRemDlnaService$Stub.asInterface,
  referenced from method com.sasken.TestDlnaApp.TestDlnaRemService
  $5.onServiceConnected

  09-24 10:51:08.051: WARN/dalvikvm(795): VFY: unable to resolve static
  method 26: Lcom/sasken/dlna/dmcRemService/IRemDlnaService
  $Stub;.asInterface (Landroid/os/IBinder;)Lcom/sasken/dlna/
  dmcRemService/IRemDlnaService;

  09-24 10:51:08.063: WARN/dalvikvm(795): VFY:  rejecting opcode 0x71 at
  0x0002

  09-24 10:51:08.063: WARN/dalvikvm(795): VFY:  rejected Lcom/sasken/
  TestDlnaApp/TestDlnaRemService$5;.onServiceConnected (Landroid/content/
  ComponentName;Landroid/os/IBinder;)V

  09-24 10:51:08.063: WARN/dalvikvm(795): Verifier rejected class Lcom/
  sasken/TestDlnaApp/TestDlnaRemService$5;

  Pls suggest any solution- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---