最新回答 / 慕梦前来
操作方法:1. 把原数据库包括在项目源码的 res/raw 目录下,然后建立一个DBManager类,代码如下:12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758package com.android.ImportDatabase; import java.io.File;import java.io.FileNotFoundException...
2020-01-18
最赞回答 / qq_蹲街数蚂蚁_03153324
Context cont = this.getApplicationContext();String s = cont.getDatabasePath("info.db")+"";SQLiteDatabase db = SQLiteDatabase.openDatabase(s,null,SQLiteDatabase.OPEN_READONLY);这样就可以了,试过了
2017-06-25
最新回答 / 吾凡庸
你写的SD卡的存储路径不对,改成 String path = Environment.getExternalStorageDirectory().getAbsolutePath();
2017-04-09