Android: how to add a contact to the SIM using the SDK?
问题 I am writing an application which writes contacts in the SIM card of an Android phone. I am stuck at the point where the phone number is added: an exception occurs with no apparent reason. Here is a snippet of code. import android.app.Activity; import android.content.ContentResolver; import android.content.ContentUris; import android.content.ContentValues; import android.provider.ContactsContract.RawContacts; import android.provider.ContactsContract.Data; import android.provider