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
Adding
static
Fixed it for me
public class MyFragment extends Fragment