/*
                                                    TODO: check for possibility to chain/join/combine xml menus
                                                    TODO: manage recurring funds (ie set monthly incomes/payments)
                                                */
@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);
    }
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?");
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;
/*
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);
}