1.加入读写权限
- <uses-permission android:name="android.permission.READ_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_CONTACTS" />
public class ContactTest { public void testInsert(Context context) { readfile s = new readfile(); ArrayList List = (ArrayList ) s.readFromFile(context);// System.out.println("1222"+arr.length); for(int x = 0;x