[android-developers] Re: CallLog.Calls DATE returning negative
Check the documentation, or the calendar. It's not an int, it's a
long.
On Jul 2, 6:41 am, Zookie <i...@zachidev.com> wrote:
> I'm pulling the call log and trying to convert the date of the call to
> something we can read but the int being returned is a negative number.
>
> int dateColumn =
> c.getColumnIndex(android.provider.CallLog.Calls.DATE);
>
> int callDate = c.getInt(dateColumn);
>
> callDate will be a number like: -1856117447
>
> So, when I convert I still end up with a date like Dec 10 1969
>
> Regards,
> Zookie
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home