@Override public boolean onOptionsItemSelected(MenuItem item) { // TODO Auto-generated method stub super.onOptionsItemSelected(item); if (item.getTitle().toString().equalsIgnoreCase("about")) { openAboutDialog(); } return super.onOptionsItemSelected(item); }
@Override public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); if (item.getItemId() == 0) { Intent intent = new Intent(this, SuggestWordActivity.class); startActivity(intent); } return true; }
@Override public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); switch (item.getItemId()) { case R.id.mnu_exit: if (!isTaskRunning) finish(); else Toast.makeText(RssReaderActivity.this, R.string.rss_keep_updating, Toast.LENGTH_SHORT) .show(); break; case R.id.mnu_about: break; default: break; } return true; }