In 1.5 and 1.6 the following code snippet works: --- import android.provider.Contacts; import android.provider.Contacts.People;
ContentValues values = new ContentValues(); values.put(Contacts.ExtensionsColumns.NAME, "name"); values.put(Contacts.ExtensionsColumns.VALUE, "value"); Uri personUri = ContentUris.withAppendedId(People.CONTENT_URI, 1); Uri personExtensionUri = Uri.withAppendedPath(personUri, People.Extensions.CONTENT_DIRECTORY); getContentResolver().insert(personExtensionUri, values); --- Can we rely on the fact that the same URIs will be handled by the built-in content providers also in future versions/devices or is there a possibility that some of them do not support it by throwing a UnsupportedOperationException ( Unknown uri: ... )? The documentation for content providers says that: "Android ships with a number of content providers for common data types (audio, video, images, personal contact information, and so on). You can see some of them listed in the android.provider package." Does that mean that everything that is under android.provider.* has to be supported by all future Android versions/devices? Tauno --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---