I am new to android and java and so sorry if its a simple question. I
have tried to search but I am getting the answer nowhere. So, I am
trying to get call log details using the CallLog.Calls content
provider. I am able to get results with simple queries however I am
not able to get any result when I try to run a WHERE query by DATE.
Here's the query below ...
Cursor c = getContentResolver().query(CallLog.Calls.CONTENT_URI, null,
CallLog.Calls.DATE + "=?",
new String[] {String.valueOf(date)}, ORDER_BY);
As this query works when the WHERE clause include Number or Type (call
type) etc., I think I am having problem (sometimes getting Illegal
type error and sometimes getting no results but no errors) because I
am not sure how exactly to convert the Date supplied to epoch dates.
How to do this? Any help people?
Thank you
--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en