我正在编写一款Android应用程序。我正在从txt文件中解析行,并将每行数据插入到SQLite数据库中。但是,插入过程在1000个条目处停止。虽然有超过3000个条目,但插入过程在1000个条目处停止了。出了什么问题?
编辑:这里是代码:
编辑:这里是代码:
try{
InputStream is = ctx.getAssets().open("feedtitlesandaddresses.txt");
InputStreamReader iz=new InputStreamReader(is);
BufferedReader br = new BufferedReader(iz);
ContentValues values = new ContentValues();
while((line=br.readLine())!=null) {
StringTokenizer stringTokenizer = new StringTokenizer(line, "<");
String firstNumber="";
String strfinal="";
**//code which gives values to strfinal and firstNumber excluded
values.put(KEY_NAME, firstNumber); // Contact Name
values.put(KEY_PH_NO,strfinal); // Contact Phone
// Inserting Row
db.insert(TABLE_CONTACTS, null, values);}
}catch(Exception e){Log.d("yeah error is"+e,"twitch12");}