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 /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package org.anddev.android.calllogdisplayer; import java.util.ArrayList; import org.anddev.android.calllogdisplayer.iconifiedlist.IconifiedText; import org.anddev.android.calllogdisplayer.iconifiedlist.IconifiedTextListAdapter; import android.app.ListActivity; import android.database.Cursor; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.util.DateUtils; public class CallLogDisplayer extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); // Querying for a cursor is like querying for any SQL-Database Cursor c = getContentResolver().query( android.provider.CallLog.Calls.CONTENT_URI, null, null, null, android.provider.CallLog.Calls.DATE + " DESC"); startManagingCursor(c); // Retrieve the column-indixes of phoneNumber, date and calltype int numberColumn = c.getColumnIndex( android.provider.CallLog.Calls.NUMBER); int dateColumn = c.getColumnIndex( android.provider.CallLog.Calls.DATE); // type can be: Incoming, Outgoing or Missed int typeColumn = c.getColumnIndex( android.provider.CallLog.Calls.TYPE); // Will hold the calls, available to the cursor ArrayList callList = new ArrayList(); // Loop through all entries the cursor provides to us. if(c.first()){ do{ String callerPhoneNumber = c.getString(numberColumn); int callDate = c.getInt(dateColumn); int callType = c.getInt(typeColumn); Drawable currentIcon = null; switch(callType){ case android.provider.CallLog.Calls.INCOMING_TYPE: currentIcon = getResources().getDrawable(R.drawable.in); break; case android.provider.CallLog.Calls.MISSED_TYPE: currentIcon = getResources().getDrawable(R.drawable.missed); break; case android.provider.CallLog.Calls.OUTGOING_TYPE: currentIcon = getResources().getDrawable(R.drawable.out); break; } // Convert the unix-timestamp to a readable datestring String dateString = DateUtils.dateString(callDate).toString(); callList.add(new IconifiedText("@ " + dateString + " | # " + callerPhoneNumber, currentIcon)); }while(c.next()); } // Create an ListAdapter that manages to display out 'callList' IconifiedTextListAdapter itla = new IconifiedTextListAdapter(this); itla.setListItems(callList); this.setListAdapter(itla); // Done =) } }