Rina Certis  or AHR
Rina Certis or AHR

Reputation: 131

Communication between an android c native application and an android application

I want to ask if someone know how to make communicate a native c android application and an classic java android application, the native c android application running in background. Thanks.

Upvotes: 0

Views: 1799

Answers (1)

Graeme
Graeme

Reputation: 25864

First thing you need to do is download the android-ndk available here. It comes with it's own documentation which will be available here: [android-ndk path]/documentation.html, You can also find information in the android-ndk link above.

If you're anything like me you'll need as much help as you can get developing a JNI bridge. I had to find these resource myself but they were invaluable to me. See below for JNI information:

Table Of Contents

Methods (older resource)

Methods (newer resource)

Types

Reference

You can integrate your NDK/C++ code and debug it from Eclipse using Sequoyah and CDT (C/C++ Development Tooling)

More specifically to answer your question - You can use a service as a wrapper around your native code if you require the native code to run in the background. This will enable you to push information to the native code using the OS's intent mechanism in a fifo structure.

Upvotes: 1

Related Questions