【发布时间】:2013-07-30 10:29:19
【问题描述】:
我需要在联系人表中记录更新所用的时间。如果我为上述ContentResolver.applyBatch 运行以下代码,
Calendar c = Calendar.getInstance();
int seconds = c.get(Calendar.SECOND);
act.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops);
int seconds1 = c.get(Calendar.SECOND);
Log.d(TAG, "diff @ "+(seconds1-seconds));
输出为diff @ 0。但实际上更新大约 150 条记录大约需要 15-20 秒。
它是否在单独的线程上运行? 如何记录更新表中记录所用的时间?
【问题讨论】:
标签: android android-sqlite android-contentresolver