80,474
社区成员
发帖
与我相关
我的任务
分享
String str;
sqLiteDatabase.beginTransaction();
try
{
for (int i = 0; i < 1000000; i++)
{
str = "张" + Integer.toString(i + 1);
contactsDB.AddContactsData(sqLiteDatabase, str, str, str, str, str, str);
listContact.add(new Person(str,str,str,str,str,str));
}
sqLiteDatabase.setTransactionSuccessful();
}
catch (Exception e)
{
throw e;
}finally {
sqLiteDatabase.endTransaction();
}