@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch(item.getItemId()) {
            case R.id.clean_all:
                db.open();
                db.drop();
                db.close();
                break;
            case R.id.manage_backup:
                db.Backup();
                break;
            case R.id.manage_funds:
                startActivityForResult(new Intent(BilansView.this, BilansStatusSetting.class), 1);
                break;
                                                /*
                                                    TODO: check for possibility to chain/join/combine xml menus
                                                    TODO: manage recurring funds (ie set monthly incomes/payments)
                                                */
            default:
                Log.e (TAG, "MENU = WTF?");
        }
        return super.onOptionsItemSelected(item);
    }
@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch(item.getItemId()) {
            case R.id.clean_all:
                db.open();
                db.drop();
                db.close();
                break;
            case R.id.manage_backup:
                db.Backup();
                break;
            case R.id.manage_funds:
                startActivityForResult(new Intent(BilansView.this, BilansStatusSetting.class), 1);
                break;
                                               
            default:
                Log.e (TAG, "MENU = WTF?");
        }
        return super.onOptionsItemSelected(item);
    }
@override public boolean onoptionsitemselected(menuitem item) { switch(item.getitemid()) { case r.id.clean_all: db.open(); db.drop(); db.close(); break; case r.id.manage_backup: db.backup(); break; case r.id.manage_funds: startactivityforresult(new intent(bilansview.this, bilansstatussetting.class), 1); break; default: log.e (tag, "menu = wtf?"); } return super.onoptionsitemselected(item); }