title: commitAllowingStateLoss() and commit() fragment
body: <p>I want commit a fragment after network background operation. I was calling commit() after successful network operation but in case activity goes to pause or stop state it was crashing app saying IllegalState exception.</p>
  
  <p>SO I tried using commitAllowingStateLoss() and its working fine now.</p>
  
  <p>I gone through few blogs and articles it says commitAllowingStateLoss() is not good to use.</p>
  
  <p>Whats the way to handle commit fragment after network operation handling activity pause and stop state?</p>