@Override public boolean onMenuItemSelected(int featureId, MenuItem item) { // TODO Auto-generated method stub switch (item.getItemId()) { case Menu.FIRST: // getting values from selected ListItem String URL = ((TextView) findViewById(R.id.txt_link)).getText().toString(); // Starting new intent Intent i = new Intent(getApplicationContext(), ShowNewsActivity.class); i.putExtra("URLname", URL); startActivity(i); break; case Menu.FIRST + 1: Toast.makeText(this, "Exit Clicked for context menu", Toast.LENGTH_LONG).show(); break; } return super.onMenuItemSelected(featureId, item); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)