title: Set a focus in Fragment
body: <p>I have a below situation:<br></p>
  
  <p>An activity, with a Fragment-A. </p>
  
  <p>On user input, a new Fragment (lets call it Fragment-B)is added, by using below code:</p>
  
  <pre><code>ft.add(R.id.content_frame, fragmentB);
  </code></pre>
  
  <p>Now, when I press back, the fragment-B is destroyed as expected.   </p>
  
  <p>As fragment-B was <strong>added(and not replaced)</strong> there is no callback to <code>onResume()</code> of Fragment A.</p>
  
  <p>I need to set focus of fragment-A as soon as fragment-B is destroyed.</p>
  
  <p>I use below code to set the Focus:</p>
  
  <pre><code>getView().setFocusableInTouchMode(true);
  getView().requestFocus();
  </code></pre>
  
  <p>Is there any way to achieve this?</p>