> I created a table which had a column with timestamp data type.

SQLite does not have a timestamp data type. See:

http://www.sqlite.org/datatype3.html

> However, I can not insert records into the table because put method in
> ContentValues class does not accept timestamp data type.
> Are there any ways to work around.

Serialize it to a string, or convert it to milliseconds-past-epoch
(java.util.Date#getTime()).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ -- Available Now!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to