I want to define an up button for my android application to go to parent activity. From some resources I found this code when up-button clicked:
NavUtils.navigateUpFromSameTask(getActivity());
But I had a problem and it was that my activity needs some data for creation (Intent extras) and for this reason I replaced with this code:
getActivity().finish();
But some feeling tells me this is not a correct way for reaching to parent activity and maybe I will face to some runtime errors later. What do you think what should I do?