I am looking for simple binder IPC example in C/C++. Recently I started reading about the Android Binder basic (http://bharathi.posterous.com/android-binder) and gone thru the code in Android source also. Most of the binder usage part is in C++. Can some one explain why C++ is used instead of C?
A:
Check out http://github.com/mcr/Android-HelloWorldService (if you use later versions of android you may have to exchange some includes from #include to #include ).
You can also download the android source code and look into frameworks/base/camera/tests/CameraServiceTest/CameraServiceTest.cpp
Cheers!
Samuel Skånberg
2010-10-20 13:02:43
Thanks Sam. I have gone thru the some of the native services. But the complexity of thous services blocking the basic understanding of the binder concept. I hope, this example will help me understand binder :)
Midson
2010-10-28 01:57:27
@Sam, Are you able to successfully compile this code?
Midson
2010-10-30 08:15:44