android的数据库不能读取

// InputStream is = context.getAssets().open("students.db");// 得到数据库文件的数据流

    InputStream is = context.getResources().openRawResource(R.raw.students);// 得到数据库文件的数据流

这两种换着来,很奇怪,这样就i可以了

你可能感兴趣的:(android的数据库不能读取)