簡體   English   中英

我們能否確保我們的應用程序使用我們的版本 SQLITE 而不是 android 提供的版本.. 通過使用 Android NDK?

[英]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?

我們的應用程序在使用 Android 2.1 中提供的默認 sqlite 版本時遇到問題。 所以我們想為我們的應用程序使用定制的 sqlite 版本。 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 library when ever there are database operations happening in our application? 例如:如果應用程序代碼中有類似“db.execSQL()”的調用,我們如何確定它會調用自定義庫?

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). 平台框架會自動加載 /system/lib/libsqlite.so。

我建議不要命名您共享的 object libsqlite.so。 我已經看到 Android 的 dlopen() 被告知要加載具有不同路徑但名稱相同的兩個共享對象,只是將第一個對象打開兩次。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM