OpenDevs Page 1/2

bawltherapistΛογισμικό & κατασκευή λογ/κού

13 Δεκ 2013 (πριν από 3 χρόνια και 7 μήνες)

64 εμφανίσεις

Regarding Android SQlite NDK
Asked by
Prasanth
on 2013-04-27T03:43:20-04:00
Hi All,

I am creating a library in the Android middleware which needs to use
Sqlites methods for creating/editing/querying etc. I was going through a
project on http://code.google.com/p/sqlite-ndk/. I am planning to use it
for my purpose. Below are some questions I had. It would be of great help
if anyone can respond to them.

1. Can I use this
sqlite-ndk-0.9.zip
in
the native code (say in the Android middleware - C/C++ code and hence
it
will not be running in an application context. My library might be loaded
and used by a daemon in the middleware layer).

2. Can we integrate the Sqlite Cipher to this (i.e. can
sqlite-ndk-0.9.zip
be
part of this library, which will be loaded and used in the middleware
layer).

Appreciate any help on this.

Thanks and Regards,
Prasanth
Archives
Android
android-developers
Apr 27, 2013
Week 17, 2013
April, 2013
Year 2013
All Answers
Answer by
KaPiL.rIcKy
on 2013-04-29T03:40:35-04:00
1. Can I use this
sqlite-ndk-0.9.zip
in
the native code (say in the Android middleware - C/C++ code and hence it
will not be running in an application context. My library might be loaded
and used by a daemon in the middleware layer).

For this you may have to follow approach like android fwk does in media
service,
Application context will b till JNI level. After that
mediaservice(stagefright) will run in other process. (as per my
understanding)
OpenDevs
Page 1/2
Regarding Android SQlite NDK



~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks and regards
Kapil Kumar
~~~~~~~~~~~~~~~~~~~~~~~~~~
Tagged
Android Middleware
Android Sqlite Ndk
Middleware Layer
Native Code
Sqlite Cipher
Related
Android MediaPlayer localhost
Can't play audio using localhost url in MediaPlayer
Compilation Error in android 4.0.4 and 4.1.2
Usage of platform/packages/apps/Exchange and patent issues
Switching between GLES2.0 and native Canvas rendering on the fly works in 2.3.6 but no in 4.2.2
View Online
http://www.opendevs.org/kksx/regarding-android-sqlite-ndk.html
OpenDevs
Page 2/2