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)
public class TestCursorDbActivity extends Activity { /** Called when the activity is first created. */ TestCursorApplication application; private ListView listView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); application = (TestCursorApplication) getApplication(); new DBAsyncTasks(this).execute(DBAsyncTasks.GET_CATEGORIES_FROM_SERVER); // for (int i = 0; i < 50; i++) // { // mAdapter.addItem("item " + i); // } listView = (ListView) findViewById(android.R.id.list); listView.setDividerHeight(2); // listView.setOnItemClickListener(this); listView.setTextFilterEnabled(true); fillData(); EditText text = (EditText) findViewById(R.id.searchText); text.addTextChangedListener(filterTextWatcher); } private TextWatcher filterTextWatcher = new TextWatcher() { public void afterTextChanged(Editable s) { } public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int count) { ((CategoryCursorAdapter) listView.getAdapter()).getFilter().filter( s); } }; public void fillData() { String[] from = new String[] { TestCursorDbAdapter.KEY_SERVICE_TYPE_NAME, TestCursorDbAdapter.KEY_CATEGORY_DESCRIPTION }; int[] to = new int[] { R.id.serviceTypeName }; Cursor cursor = application.getDBAdapter().fetchAllCategories(); startManagingCursor(cursor); CategoryCursorAdapter categoryAdapter = new CategoryCursorAdapter(this, R.layout.list_rowlayout, cursor, from, to); listView.setAdapter(categoryAdapter); // Set the FilterQueryProvider, to run queries for choices // that match the specified input. categoryAdapter.setFilterQueryProvider(new FilterQueryProvider() { public Cursor runQuery(CharSequence constraint) { // Search for states whose names begin with the specified // letters. Cursor cursor = application.getDBAdapter() .fetchFilteredCategories( (constraint != null ? constraint .toString() : null)); return cursor; } }); } }