开发者

Can we make sure that our app uses our version of SQLITE instead of the one which is provided by android.. by using Android NDK?

our application is having problems working with default sqlite version provided in Android 2.1. So we want to use the customized sqlite version for our App. So my question is .. if we get the latest sqlite version from SQLITE.org and compile with android NDK, will we be able to invoke the our sqlite libra开发者_如何学Pythonry when ever there are database operations happening in our application? ex: if there is a call like "db.execSQL()" in Application code, How are we sure that it is gonna call the custom library?


In addition to building your own sqlite shared object, you will need to replace one or more of the standard java sources from Android with your own (unless you actually just replace the platform's sqlite shared object). The platform framework loads /system/lib/libsqlite.so automatically.

I would suggest not naming your shared object libsqlite.so. I've seen Android's dlopen() being told to load two shared objects with different paths but the same name, only to have the first one opened twice.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜