安卓:使用SD卡上的SQLite数据库(未使用内部Android的数据存储在所有) [英] Android: use SQLite database on SD Card (not using internal Android Data Store at all)
问题描述
有人可以请给我一些链接/教程使用thatis存储在SD卡中的SQLite文件?不执行OpenHandler。
Can somebody please give me some links / tutorials to using SQLite file thatis stored on a SD card? Not implementing the OpenHandler.
/ SD卡// info.db
/SD CARD//info.db
我想用外部SQLite数据库文件(不使用Android的内部数据存储),因为我要经常更新的数据库文件,以提供更多的高达上info.db最新信息。
I want to use an external SQlite database file (not use Android internal data store) because I want to frequently update the database file to provide more up to date information on info.db.
感谢你。
推荐答案
您是否尝试过使用<一个href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#openOrCreateDatabase%28java.lang.String,%20android.database.sqlite.SQLiteDatabase.CursorFactory%29"><$c$c>SQLiteDatabase.openOrCreateDatabase(String, SQLiteDatabase.CursorFactory) ?你可以简单地通过/ SD卡/ info.db
作为第一个和空
作为第二个参数。
Have you tried using SQLiteDatabase.openOrCreateDatabase(String, SQLiteDatabase.CursorFactory)
? You can simply pass "/sdcard/info.db"
as the first and null
as the second parameter.
这篇关于安卓:使用SD卡上的SQLite数据库(未使用内部Android的数据存储在所有)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!