Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ JNI Android
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 6-Aug-12 9:44am
Comments
Sergey Alexandrovich Kryukov at 6-Aug-12 15:29pm
   
Agree with you, it would be much better.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Also I hade found this one http://code.google.com/p/android-cpp-sdk/[^]
  Permalink  
Comments
pasztorpisti at 7-Aug-12 19:01pm
   
+5 didn't know about this and it looks like a usable wrapper.
m-ric at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100