Periodically crashes the application on Android. With it every time in different places. I can not understand for what reason. The structure of the application is simple: there is one Activity and a bunch of fragments . The output of the fragment is as follows:
ItemsFragment itemsFragment = new ItemsFragment() { GroupID = groupID, CurrentGroup = currentGroup }; itemsFragment.RetainInstance = true; var fragmentManager = SupportFragmentManager.BeginTransaction(); fragmentManager.Replace(Resource.Id.flContent, (SupportFragment)itemsFragment); fragmentManager.AddToBackStack(null); fragmentManager.Commit(); I use C # Xamarin, but on the java principle is the same, only the syntax is slightly different. Help a novice android developer understand and understand what is the reason.