title: Go back to a Fragment from an Activity onBackpress
body: <p>I Tried the following code to move from a Fragment  extends Fragment to an Activity extends activity.</p>
  
  <pre><code> Intent mIntent = new Intent(getActivity(), UserProfile.class);
              Bundle bundle = new Bundle();
              bundle.putBoolean(Constant.isFromChatScreen, false);
              mIntent.putExtras(bundle);
              startActivity(mIntent);
  </code></pre>
  
  <p>In <code>BaseActivity.java</code> I have Fragment <code>A</code>, Fragment <code>B</code>, Fragment <code>C</code>..from <code>Fragment A</code> I moved to <code>Userprofile.java</code> now I want to move back to Fragment A  <code>onBackPressed</code>
  How can I do that?</p>