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

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

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

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 - Format data from SMS content provider

Format data from SMS content provider

Put your problem here if it does not fit any of the other categories.

Format data from SMS content provider

Postby xgeraldx » Thu Dec 11, 2008 6:42 am

I'm using the SMS inbox content provider to fill a list view, how do i format the date (5 November 2008)? It looks like the data is in long int format, not 100% on that :? . Thanks in advance for the help.

-Gerald
xgeraldx
Freshman
Freshman
 
Posts: 4
Joined: Fri Sep 26, 2008 3:58 pm

Top

Postby MrSnowflake » Thu Dec 11, 2008 9:50 am

If it's long int, try new Data(long);
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby haden » Thu Dec 11, 2008 9:51 am

Did you try the content providers update method?
haden
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Thu Sep 11, 2008 11:51 am

Postby xgeraldx » Sun Dec 14, 2008 7:00 pm

I did find this information out from a post on the internet:

"If you're using SimpleCursorAdapter or SimpleAdapter, you can use
setViewBinder to attach a ViewBinder object to the adapter. Then
override setViewValue in the ViewBinder. "

The only problem is when I try to create a ViewBinder object, I can't find it as a class that I can inherit from. I think if I can figure this out I should be good, any ideas?

-Gerald
xgeraldx
Freshman
Freshman
 
Posts: 4
Joined: Fri Sep 26, 2008 3:58 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: MSNbot Media and 12 guests