// InputStream is = context.getAssets().open("students.db");// 得到數(shù)據(jù)庫(kù)文件的數(shù)據(jù)流
InputStream is = context.getResources().openRawResource(R.raw.students);// 得到數(shù)據(jù)庫(kù)文件的數(shù)據(jù)流
這兩種換著來(lái),很奇怪,這樣就i可以了
// InputStream is = context.getAssets().open("students.db");// 得到數(shù)據(jù)庫(kù)文件的數(shù)據(jù)流
InputStream is = context.getResources().openRawResource(R.raw.students);// 得到數(shù)據(jù)庫(kù)文件的數(shù)據(jù)流
這兩種換著來(lái),很奇怪,這樣就i可以了