I made a very simple Activity which shows a simple ListFragment like below:
My Activity:
public class MyActivity ex
I faced the same issue and unable to fix it. Event I added isFinishing() check as well. but no luck.
then I added one more check isDestroyed() and its working fine now.
if (!isFinishing() && !isDestroyed()) {
FragmentTransaction ft = getSupportFragmentManager()
.beginTransaction();
ft.replace(LAYOUT_ID, myFragmentInstance);
ft.commit();
}