Click here to Skip to main content
15,860,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to start a small project on C++ for android. I don't like that ugly c-style JNI. Is there some good C++ wrappers ?
Posted
Comments
Sergey Alexandrovich Kryukov 6-Aug-12 15:29pm    
Agree with you, it would be much better.
--SA

Hi Sergey,
You can see the SWIG (Simplified Wrapper and Interface Generator):
http://www.swig.org/tutorial.html[^]
http://www.swig.org/Doc2.0/SWIGDocumentation.html[^]
I hope this will help you
 
Share this answer
 
Also I hade found this one http://code.google.com/p/android-cpp-sdk/[^]
 
Share this answer
 
Comments
pasztorpisti 7-Aug-12 19:01pm    
+5 didn't know about this and it looks like a usable wrapper.
m-ric 4-Sep-12 15:19pm    
I found out this one too. It looks pretty neat. How large is the generated lib? Also my need is slightly different: I have some xml files describing the API to be JNI'ed. Here is an example: http://pastebin.com/rHNKHCJS. I am looking for some sort of xml2jnicpp wrapper for Android. I already have a dbusxx-xml2cpp used for the desktop version of the software. I am looking for a jni version of it for the android version of the software. Do you know where I can find inspiration?

[EDIT]
After looking more deeply into swig, I will give it a safe bet.
Did you try this one:
http://www.teamdev.com/jniwrapper/[^],
http://www.teamdev.com/jniwrapper/documentation/[^]?

By documentation, it looks good, but unfortunately, it's commercial. And I never tried it.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900