Inserting contact to Samsung I9000 Galaxy S returns an exception
<p>I have this code for inserting contacts tested on all HTC devices and it seems to be working fine until I tried it on a Samsung I9000 Galaxy S which gives me a java.lang.NullPointerException on this particular line of code </p>

<pre><code>String strDisplayName = "First Name" + " " + "LastName";
values.put(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, strDisplayName);
Uri rawContactUri = context.getContentResolver().insert(RawContacts.CONTENT_URI, values); //java.lang.NullPointerException here
</code></pre>

<p>It seems like this URI doesn't exist or maybe samsung has a different way on inserting contacts. Has anyone experience this on samsung galaxy device? Please share your thoughts.</p>

<p>Thanks</p>
