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 net.esalazar.alarmsutta; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LinearLayout; import android.widget.TextView; public class AlarmListAdapter extends ArrayAdapter { int resource; public AlarmListAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { LinearLayout alarmView; Alarm item = getItem(position); Date expiry = item.getExpiry(); String title = item.getTitle(); SimpleDateFormat sdf; sdf = new SimpleDateFormat("MM/dd/yyyy"); String expiryDateString = sdf.format(expiry); sdf = new SimpleDateFormat("hh:mm"); String expiryTimeString = sdf.format(expiry); String message = item.getMessage(); if(convertView == null) { alarmView = new LinearLayout(getContext()); String inflater = Context.LAYOUT_INFLATER_SERVICE; LayoutInflater vi; vi = (LayoutInflater)getContext().getSystemService(inflater); vi.inflate(resource, alarmView, true); } else { alarmView = (LinearLayout)convertView; } Calendar calendar = Calendar.getInstance(); calendar.setTime(expiry); // Get references to all the elements we wish to muck with TextView titleTextView = (TextView)alarmView.findViewById (R.id.itemTitleTextView); TextView messageTextView = (TextView)alarmView.findViewById (R.id.itemMessageTextView); TextView timeTextView = (TextView)alarmView.findViewById (R.id.itemTimeTextView); TextView dimmedAA; if( calendar.get(Calendar.HOUR_OF_DAY) > 12 ) { dimmedAA = (TextView)alarmView.findViewById(R.id.itemAMTextView); } else { dimmedAA = (TextView)alarmView.findViewById(R.id.itemPMTextView); } // Dim the AM/PM label accordingly leaving the correct one bright dimmedAA.setTextColor(13355979); // Set the title and message accordingly. We prefix the message with // the date just to be coy. titleTextView.setText(title); messageTextView.setText( expiryDateString + " " + message ); timeTextView.setText(expiryTimeString); return alarmView; }