AndroidDatabaseConnection db = new AndroidDatabaseConnection(
getSQLiteDatabase(), true);
db.setAutoCommit(false);
for (ChannelDate cd : listChannelDate) {
cdao.createOrUpdate(cd);
}
db.commit(null);
AndroidDatabaseConnection db = new AndroidDatabaseConnection(
getSQLiteDatabase(), true);
db.setAutoCommit(false);
for (ChannelDate cd : listChannelDate) {
cdao.createOrUpdate(cd);
}
db.commit(null);
转载于:https://my.oschina.net/liyang2l/blog/70380