Iam new to android .I need to go back to the FragmentActivity from fragment page.

My work flow is: 

MainActivity->ProfileActivity->ProfilePhotoEditFragment

I need to go back to 

ProfilePhotoEditFragment -> ProfileActivity

manifest

```
<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="16" />

```

ProfilePhotoEditFragment.java

```
public class ProfilePhotoEditFragment extends Fragment implements OnClickListener {

ViewUtils mViewUtils;
Bundle mSavedInstanceState;

private OnNavigateProfileListener mOnNavigateProfileListener;
private Button mCancelButton;

public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    Context mContext = getActivity().getApplicationContext();
    mViewUtils = new ViewUtils(mContext);

}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {

    mSavedInstanceState = savedInstanceState;

    View view = inflater.inflate(R.layout.fragment_edit_profile_pic, container, false);
    mCancelButton = (Button) view.findViewById(R.id.cancel);
    mCancelButton.setOnClickListener(this);

    return view;
}

@Override
public void onStart() {
    super.onStart();

}

@Override
public void onClick(View view) {

   if (view.getId() == mCancelButton.getId()){
        onBackPressed();

    }

}

public void onBackPressed() {
    // do something on back.
    return;
}

```

}