如何快速插入数千个联系人

时间:2012-10-19 07:48:17

标签: android

我是菜鸟。我正在开发一个项目,要求我快速将数千个联系人插入到android中,然后删除它们。我仔细阅读了Insertion of thousands of contact entries using applyBatch is slow上的页面。我想使用'4 Answers'中提到的方法,但我无法理解一些变量和类,例如mOpenHelper,Tables.GUYS和Guys.STRINGCOLUMNTYPE。我需要你的帮助。

我已经知道如何将数据插入到SQLite中,但我发现在/data/data/com.android.providers.contacts/databases中的contacts2.db中有很多表。但是,我只需要在contacts2.db中插入两个字段,名称和电话号码。我不能分析这些表,因为它们太多了。

0 个答案:

没有答案