I have an activity and I need to change its title programmatically, I found a way but it does not work for me, see:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_relatorio);
Window w = getWindow();
w.setTitle("Relatório de Vendas");
}
I tried to use in api 21 and 22 and the title continues to show the application name and the setTitle()
text is not displayed. How can this change be made?