android call Logs Date insertion
<p>I am trying to insert Call Logs in inbox programmatically but I am using getcontentresolver() for insertion. but when i am trying to insert date at that time exception is thrown.
i have String variable "date" in which date is "2011-11-04".  and i am passing it to values.put(CallLog.Calls.DATE, callDate);</p>

<p>my code is here</p>

<pre><code>ContentValues values = new ContentValues();
values.put(CallLog.Calls.NUMBER, callnumber);
values.put(CallLog.Calls.CACHED_NAME, callLogName);
values.put(CallLog.Calls.DATE, callDate);
values.put(CallLog.Calls.DURATION, callDuration);
values.put(CallLog.Calls.TYPE, callType);
getContentResolver().insert(CallLog.Calls.CONTENT_URI,values);
</code></pre>

<p>Exception is "java numberformate exception"</p>
