I have a simple fragment activity. In the onCreate() method, I simply add a fragment. The code is posted below. However, each time I rotate the screen, system will call onCr
I faced the similar problem when I renamed my project package name. The fragment class is referred by xml layout and usually contains the full package name.Thats where the problem was. My fragment class name was still having old package name.