2016-12-06 42 views
0

我是SQLite新手,正在創建一個需要數據庫的android應用程序。 我想知道如果我從預編譯二進制文件中下載SQLite從https://sqlite.org/download.html爲Android。我已經遇到了幾個SQLite教程,但沒有關於如何下載SQLite。我該怎麼辦?謝謝。SQLite - Android App

+6

SQLite附帶Android操作系統 –

+0

或者我推薦[realm.io](https://realm.io/) – Jacob

+0

您可能需要此[用於SQLite的React Native Android包裝程序](https://github.com/ jbrodriguez /反應天然-機器人-源碼)。這就是=)瞭解如何使用它的自述頁面。 – naXa

回答

1

SQLite附帶Android操作系統。您有一個官方API(SQLiteDatabase)可以在您的應用程序中訪問它。但我建議使用任何可以簡化開發過程的庫。

看看這個React Native Android wrapper for SQLite。這可能是你所需要的。 =)瞭解如何使用它的自述文件頁面。

+0

錯誤< - mReactRootView = new ReactRootView(this); 錯誤< - mReactInstanceManager = ReactInstanceManager.builder() 錯誤< - mReactRootView.startReactApplication(error <-m​​ReactInstanceManager,「YourProject」,null); setContentView(error < - mReactRootView); –

+0

@JãoVitor如果你想問另一個問題,請創建一個單獨的帖子。如果您覺得這有幫助,您可以參考本文。 – naXa