Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - ContentProvider Query Filter on Date

ContentProvider Query Filter on Date

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

ContentProvider Query Filter on Date

Postby thewizzy » Thu Nov 19, 2009 6:40 am

Hi All,

I tried to query the ContentProvider CallLog to get the records for date > 1-Nov-2009.
My code is as followed:

Code: Select all
Cursor c = getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,
              null,
              "DATE >= '2009-11-01" ,
              null,
              android.provider.CallLog.Calls.DATE + " DESC");


There is no records returned, please guide how to craft the correct filter.

thanks
thewizzy
Freshman
Freshman
 
Posts: 3
Joined: Thu Nov 19, 2009 6:26 am

Top

Postby thewizzy » Fri Nov 20, 2009 3:59 am

Finally it works!

Code: Select all
Cursor c = getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,
             null,
             android.provider.CallLog.Calls.DATE + " >= " + calPeriod.getTimeInMillis(),
             null,
             android.provider.CallLog.Calls.DATE + " DESC");
thewizzy
Freshman
Freshman
 
Posts: 3
Joined: Thu Nov 19, 2009 6:26 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 10 guests