I have started to implement some of the Android messaging classes that
are normally only available within the Java framework for native code
development in C++. I have done that because we do a lot of native
code development for our hardware platform to implement additional
features and therefor we also do a lot of multithreaded programming. I
like Android's messaging framework very much, so I don't want to
reinvent the wheel all the time for native concurrent programs :-).
The framework also works with your desktop Linux system or with QNX
Neutrino RTOS.

You can find the source code with a small test program here (Apache 2
license): 
https://code.google.com/p/himmele/source/browse/#svn%2Ftrunk%2FAndroid%20Messaging

The following is currently NOT implemented but I will do this in the
future:
- use Android's reference counting mechanism (smart pointers) based on
RefBase, sp<...> and wp<...>.
- add the Binder IPC interface by implementing the Messenger class as
the Java framework does.
- add Bundles and Parcels.
- implement a native AsyncTask class (including Java's
ThreadPoolExecutor)

If you would like to submit some of the planned features feel free to
do so.

Br,
Daniel

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