Click here to Skip to main content
11,647,748 members (70,012 online)
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 8: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 jyo.net 500
1 F-ES Sitecore 410
2 OriginalGriff 322
3 DamithSL 315
4 CPallini 250
0 OriginalGriff 1,342
1 jyo.net 994
2 DamithSL 971
3 Sergey Alexandrovich Kryukov 873
4 CPallini 795


Advertise | Privacy | Mobile
Web03 | 2.8.150804.3 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2015
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