title: Issue with onBackPressed() is not refresh fragment
body: <p>In my Android Application, I have two Fragments in my Activity, A and B. </p>
  
  <p>In “A” Fragment  I have developed one form and in that form some data is coming from a database. I have used a fragment transaction and replaced fragment “A”  with fragment “B”.</p>
  
  <p><strong>Here is my code to replace Fragment A with FragmentB.</strong></p>
  
  <pre><code>final FragmentManager fragmentManager = getFragmentManager();   
  final FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();  
  FragmentB reload = new FragmentB();  
  fragmentTransaction.replace(android.R.id.content,reload);
  fragmentTransaction.addToBackStack(null);  
  fragmentTransaction.commit();
  </code></pre>
  
  <p>In “B” Fragment, I am fetching data from a server and storing it in an SQLite database so we can use the latest data in the application. When I click on the back button it returns back to Fragment “A” but all the data in Fragment “A” is not refreshed based on the newly-reloaded data.</p>
  
  <p>Here is my code for main activity where I override <code>onBackPressed()</code> method:</p>
  
  <pre><code>@Override    
  public void onBackPressed() {
  
       // TODO Auto-generated method stub
           getFragmentManager().popBackStack();
    }
  </code></pre>
  
  <p>I want to refresh Fragment A's data with the latest values from the database when I hit the back button from the main activity. As much I know we cannot do back-press event in fragment B. Please correct me if I am wrong and suggest me how I can solve issue.</p>
  
  <p>Does anybody know how I can achieve it?</p>