Contacts API에서 주소록 데이터를 추가할 때 ContentProviderOperation을 사용하는데,

여기에서 다른 데이터들을 입력할 때 RAW_CONTACT ID를 받아와야 하는데,
이것을 받아오기 위해 withValueBackReference()를 사용하더군요.

근데 withValueBackReference()를 보면

 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0)

이런식으로 사용하는데, 두번째 인자가 무엇을 의미하는지 잘 모르겠습니다. API에도 아래와 같이 나와있기만 하구요.

public ContentProviderOperation.Builder withValueBackReference (String key, int previousResult)

Since: API Level 5

Add a ContentValues back reference. A column value from the back references takes precedence over a value specified in withValues(ContentValues). This can only be used with builders of type insert, update, or assert.

Returns
  • this builder, to allow for chaining. 

Contacts API 잘 아시는 분 도움 부탁드립니다 :)
바뀐 Contacts API는 정말 공부를 해도 어렵네요 ㅠㅠ