Hi Dave,

With respect to performance, which approach is more better? Because
all the other modules in Android such as Camera or Media Recorder
module all use native binding and JNI layer for java access.

Regards,
iblues

On Mar 31, 10:36 am, Dave Sparks <davidspa...@android.com> wrote:
> You can write AIDL to generate your Java binding, or you can write
> your own native binding and put a JNI layer on top of that. If you
> don't plan on calling your service from native code, AIDL is much
> easier.
>
> On Mar 30, 6:08 pm, beyounn <beyo...@gmail.com> wrote:
>
>
>
> > Hello,
> > I'm writing a service by C. My code calls binder to add a service
> > called "myservice" into servicemanager. And I can add "myservice"
> > without any problem. Also, when I run "/system/bin/service list", it
> > shows the service added by me. The question is -- What is the correct
> > way to access this service from my application that is written by
> > java?
> > Thanks
> > Yi- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to