protected void onCreate(Bundle savedInstanceState, int layoutResID) {
    super.onCreate(savedInstanceState);
    setContentView(layoutResID);

    context = getApplicationContext();
    AppUtils.init(this);
  }
Exemplo n.º 2
0
  protected void onCreate(Bundle savedInstanceState, int layoutResID) {
    super.onCreate(savedInstanceState);
    setContentView(layoutResID);

    AppUtils.initTrineaInfo(this, trineaInfoTv, getClass());

    ActionBar bar = getActionBar();
    bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_HOME_AS_UP);
  }
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   switch (item.getItemId()) {
     case android.R.id.home:
       {
         onBackPressed();
         return true;
       }
     case R.id.github:
       {
         AppUtils.urlOpen(context, getString(R.string.github_trinea));
         return true;
       }
   }
   return false;
 }