Here is my code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
getActivity().getActionBar().setDisplayHomeAsUpEnabled(true);
}
It is for phone. In tablet, I don't want to show "Up button" on navigation. But how programmatically?