Android's UP navigation -


after declaring parent activity in android's manifest, i've noticed navigation works automatically without these lines of code below

actionbar actionbar = this.getsupportactionbar();     if (actionbar != null) {         actionbar.setdisplayhomeasupenabled(true);     }   @override public boolean onoptionsitemselected(menuitem item) {     if (item.getitemid( == android.r.id.home) {         navutils.navigateupfromsametask(this);     }     return super.onoptionsitemselected(item); } 

i've tried launching app code , without haven't notice added functionality or changes in visual appearance. can enlighten me for?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -