Android: On Configuration change or Orientation change
savedInstanceState will be null when the activity is created.
savedInstanceState will be not null when the activity is re createdcheck condition on the activity onCreate.
if (null == savedInstanceState) { // Add fragment to the activity }
Comments
Post a Comment