title: How to start a Fragment/Activity within Fragment?
body: <p><img src="https://i.stack.imgur.com/TA7nB.png" alt="enter image description here"></p>
  
  <p>I have a button in <code>Fragment</code>. When <code>Button</code> is clicked it has to Open new <code>Fragment/Activity</code> within <code>Fragment</code>. I have written code using <code>Intent</code>,
                               <code>Intent i = new Intent();
                  i.setClass(getActivity(), UpdateProfile.class);
                  startActivity(i);</code> 
  but its opening in new activity like in below image.
  <img src="https://i.stack.imgur.com/W8DVH.png" alt="enter image description here"></p>
  
  <p>My requirement is in Picture 1. Can someone suggest me how to do it?</p>
  
  <p><strong>EDIT</strong>: As suggested by rai and ADK, its working fine but new fragment overlays on old fragment. See the below image. "Change Password"(<code>TextView</code>) is New Fragment which overlays on existing fragment.</p>
  
  <p><img src="https://i.stack.imgur.com/517ce.jpg" alt="enter image description here"></p>