user316117
user316117

Reputation: 8271

How do I use a C++ API in Android?

I was recently looking for some way to embed an Adobe PDF file reader in my Android apps and someone on SO suggested Adobe Reader Mobile 9 SDK.

On their FAQ they say their SDK consists of a set of C++ API's. How do I go about accessing an API written in C++ in an Android app?

Thanks in advance.

Upvotes: 0

Views: 213

Answers (1)

Code Droid
Code Droid

Reputation: 10472

Check if someone has converted the library to one that is accessible in your Android environment. Maybe someone has already converted to version you can use from Android but often not the case.

If not, you will need to see if you can run the source (you will need the source), through NDK cross compiler to obtain a version of the library that can be loaded in an Android app.

So follow the steps here, post if you run into issues: http://developer.android.com/tools/sdk/ndk/index.html

Upvotes: 1

Related Questions