Esempio n. 1
0
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
      case R.id.action_pref:
        startActivity(new Intent(BaseActivity.this, PrefActivity.class));
        return true;
      case R.id.action_donate:
        IntentHelper.openWithBrowser(BaseActivity.this, getString(R.string.url_donate));
        return true;
      case R.id.action_feedback:
        mHuabanApp.sendFeedbackEmail();
        return true;
        //            case R.id.action_about:
        //                //...
        //                return true;
      case android.R.id.home:
        finish();
        return true;
    }

    return super.onOptionsItemSelected(item);
  }
Esempio n. 2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   mHuabanApp = Huaban.getInstance();
   getActionBar().setIcon(android.R.color.transparent);
 }