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)
class MyActivity extends Activity { protected static final int CONTEXT_CLICK_ME = Menu.FIRST; public void onCreate(Bundle savedInstanceState){ super(savedInstanceState); setContentView(R.layout.main); listView = (ListView)findViewById(R.id.listView); // Some cursor adapter Cursor c = this.managedQuery(uri, null, null, null, null); SimpleCursorAdapter listAdapter = new SimpleCursorAdapter(this, c); mList.setAdapter(listAdapter ); // This will make the listView create a ContextMenu when you long press it. // It also create the awsome menu option "Click Me" listView.setOnCreateContextMenuListener(new OnCreateContextMenuListener() { @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { menu.add(0, CONTEXT_CLICK_ME, 0, "Click Me"); } }); } public boolean onContextItemSelected(MenuItem item) { switch (item.getItemId()) { case CONTEXT_CLICK_ME: // This is actually where the magic happens. // As we use an adapter view (which the ListView is) // We can cast item.getMenuInfo() to AdapterContextMenuInfo AdapterView.AdapterContextMenuInfo menuInfo = (AdapterView.AdapterContextMenuInfo)item.getMenuInfo(); // To get the id of the clicked item in the list use menuInfo.id Log.d(TAG, "list pos:"+menuInfo.position+" id:"+menuInfo.id); break; default: return super.onContextItemSelected(item); } return true; } }