views:

92

answers:

2

I'm working on an Android app with a Java component and a C++ component via JNI. The C++ component is used on other platforms.

It would make my life considerably easier if the C++ component could query the existing SQLite database (via the SQLite C API), without having to shell calls out to the Java side.

I know it's a long shot, has anyone attempted this?

+1  A: 

No, the NDK only offers limited apis. The only officially supports areas are:

  • libc (C library) headers
  • libm (math library) headers
  • JNI interface headers
  • libz (Zlib compression) headers
  • liblog (Android logging) header
  • OpenGL ES 1.1 and OpenGL ES 2.0 (3D graphics libraries) headers
  • libjnigraphics (Pixel buffer access) header (for Android 2.2 and above).
  • A Minimal set of headers for C++ support

From ndk docs.

Mayra
+1  A: 
Chris Stratton