1

I need develop a plugin for phonegap application, it will be used for iOS, BlackBerry, Android and WindowsPhone application over PhoneGap.

I have a set of functions (library) in C++ that allows apply operations on images, and I want to know if I can use this C++ library to build different plugins for PhoneGAP in native code, using something like a wrapper or similar for JAVA, Objective-C, etc.

Or exist other method to use this C++ library in multiple mobile plattforms, for instance use JNI to call the C code ?

Thanks in advance.

4
  • 1
    For example on native Android, you can use C++ along with Java (You can lookup on JNI). No idea on other platforms though. You need to check for other platforms, if C++ can be used along with their respective native languages. Commented Apr 9, 2013 at 17:02
  • Well for android I can use JNI, BlackBerry use Java too, so JNI may be available, but iOS Objective-C, dont know if can call to C++ functions. Commented Apr 9, 2013 at 17:07
  • 1
    You can definitely call C++ functions in an Objective-C code. Just add the file containing your function using #include statement... Commented Apr 9, 2013 at 17:10
  • yes, you can use c++ on iOS apps too stackoverflow.com/questions/8759573/… Commented Apr 9, 2013 at 17:13

1 Answer 1

-1

no

Your answer couldn't be submitted. Please see the error above.

Sign up to request clarification or add additional context in comments.

4 Comments

@ManuParra Your answer couldn't be submitted. Please see the error above. is simply the error to warn you that your answer have an error and can't be submitted. It has nothing to do with your question.
the answer is "No" the reason why: you need different libraries, native code in Androd, android versions, Blackberrry... ans iOS...
Yes I understand, but you can call c++ functions from other languages and then integrate in each native platform
@ManuParra yes, teoretically... as how Android it is a platform independent solution, just try to wor with Audio-Video , which require native stuff! You will see the difference between theoretically and practically platform independency

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.