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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -