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
The Fragment class also should not be an inner class, because it is instantiated out of your Activity class scope. Nested class is ok.