// InputStream is = context.getAssets().open("students.db");// 得到数据库文件的数据流
InputStream is = context.getResources().openRawResource(R.raw.students);// 得到数据库文件的数据流
这两种换着来,很奇怪,这样就i可以了
// InputStream is = context.getAssets().open("students.db");// 得到数据库文件的数据流
InputStream is = context.getResources().openRawResource(R.raw.students);// 得到数据库文件的数据流
这两种换着来,很奇怪,这样就i可以了