code: @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
      if (keyCode == KeyEvent.KEYCODE_MENU) {
        startActivity(new Intent(this, PreferencesActivity.class));
        return true;
      }
      return super.onKeyDown(keyCode, event);
    }
docs: wire up preferences screen when menu button is pressed.