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 android.examples; import java.util.Calendar; import android.app.Activity; import android.app.TimePickerDialog; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.TimePicker; public class NoteEdit extends Activity { private EditText titleText; private EditText bodyText; private EditText subtitleText; private TextView DateDisplay; private Long rowId; private int myhour; private int myminute; private DBHelper dbHelper; @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); dbHelper = new DBHelper(this); setContentView(R.layout.note_edit); titleText = (EditText) findViewById(R.id.title); bodyText = (EditText) findViewById(R.id.body); subtitleText = (EditText) findViewById(R.id.subtitle); DateDisplay=(TextView) findViewById(R.id.dateDisplay); Button confirmButton = (Button) findViewById(R.id.confirm); Button picktime = (Button) findViewById(R.id.pickTime); rowId = icicle != null ? icicle.getLong(Example1.KEY_ROW_ID) : null; if (rowId == null) { Bundle extras = getIntent().getExtras(); rowId = extras != null ? extras.getLong(Example1.KEY_ROW_ID) : null; } populateFields(); final Calendar c = Calendar.getInstance(); myhour = c.get(Calendar.HOUR_OF_DAY); myminute = c.get(Calendar.MINUTE); updateDisplay(); confirmButton.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { setResult(RESULT_OK); finish(); } }); picktime.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { new TimePickerDialog(NoteEdit.this, mTimeSetListener, "Set the time", myhour, myminute, false).show(); } }); } private void populateFields() { if (rowId != null) { DBHelper.Row row = dbHelper.fetchRow(rowId); if (row.rowId > -1) { titleText.setText(row.title); bodyText.setText(row.body); subtitleText.setText(row.subtitle); myhour=row.hour; myminute=row.minute; } } } @Override protected void onFreeze(Bundle outState) { super.onFreeze(outState); outState.putLong(Example1.KEY_ROW_ID, rowId); } @Override protected void onPause() { super.onPause(); saveState(); dbHelper.close(); dbHelper = null; } @Override protected void onResume() { super.onResume(); if (dbHelper == null) { dbHelper = new DBHelper(this); } populateFields(); } private void saveState() { String title = titleText.getText().toString(); String body = bodyText.getText().toString(); String subtitle = titleText.getText().toString(); int sethour=myhour; int setminute=myminute; if (rowId == null) { dbHelper.createRow(title, body, subtitle,sethour,setminute); } else { dbHelper.updateRow(rowId, title, body, subtitle,sethour,setminute); } } private TimePicker.OnTimeSetListener mTimeSetListener = new TimePicker.OnTimeSetListener() { public void timeSet(TimePicker view, int hourOfDay, int minute) { myhour = hourOfDay; myminute = minute; updateDisplay(); } }; private void updateDisplay() { DateDisplay.setText( new StringBuilder() .append(pad(myhour)).append(":") .append(pad(myminute))); } private static String pad(int c) { if (c >= 10) return String.valueOf(c); else return "0" + String.valueOf(c); } }