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.ArrayList; import java.util.List; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.view.Menu.Item; import android.widget.ArrayAdapter; import android.widget.ListView; import bhuvana.android.examples.DBHelper.Row; public class Example1 extends ListActivity { private static final int ACTIVITY_CREATE=0; private static final int ACTIVITY_EDIT=1; public static final String KEY_TITLE = "title"; public static final String KEY_BODY = "body"; public static final String KEY_ROW_ID = "rowid"; private static final int INSERT_ID = Menu.FIRST; private static final int DELETE_ID = Menu.FIRST + 1; private DBHelper dbHelper; private List rows; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.notes_list); dbHelper = new DBHelper(this); fillData(); } private void fillData() { // We need a list of strings for the list items List items = new ArrayList(); // Get all of the rows from the database and create the item list rows = dbHelper.fetchAllRows(); for (Row row : rows) { items.add(row.title); } // Now create an array adapter and set it to display using our row ArrayAdapter notes = new ArrayAdapter(this, R.layout.notes_row, items); setListAdapter(notes); } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, INSERT_ID, R.string.menu_insert); menu.add(0, DELETE_ID, R.string.menu_delete); return true; } @Override public boolean onMenuItemSelected(int featureId, Item item) { super.onMenuItemSelected(featureId, item); switch(item.getId()) { case INSERT_ID: createNote(); break; case DELETE_ID: dbHelper.deleteRow(rows.get(getSelection()).rowId); fillData(); break; } return true; } private void createNote() { Intent i = new Intent(this, NoteEdit.class); startSubActivity(i, ACTIVITY_CREATE); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Intent i = new Intent(this, NoteEdit.class); i.putExtra(KEY_ROW_ID, rows.get(position).rowId); startSubActivity(i, ACTIVITY_EDIT); } @Override protected void onActivityResult(int requestCode, int resultCode, String data, Bundle extras) { super.onActivityResult(requestCode, resultCode, data, extras); fillData(); } }