Code example for FragmentActivity

Methods: onDestroy

0
    getSupportLoaderManager().initLoader(0, null, this);
  } 
 
  @Override 
  public void onDestroy() { 
    super.onDestroy(); 
 
    db.close();
  } 
 
  @Override 
  public boolean onCreateOptionsMenu(Menu menu) {
    menu.add(Menu.NONE, ADD_ID, Menu.NONE, "Add")
        .setIcon(R.drawable.add).setAlphabeticShortcut('a');
 
    return(super.onCreateOptionsMenu(menu));
  } 
 
  @Override 
  public boolean onOptionsItemSelected(MenuItem item) {
Stop searching for code, let great code find you!  Add Codota to your java IDE