Click here to Skip to main content
12,074,926 members (57,533 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ Mobile 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
   
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 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.
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
Top Experts
Last 24hrsThis month


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