View salvar = findViewById(R.id.idBotaoSalvar);
Button salvar = (Button) findViewById(R.id.idBotaoSalvar);
finish()
By Ricardo Longa