My app gets crashed frequently when it goes from background to foreground. Scenerio: Suppose iam playing any games and my app is in recent list and after playing,if i select
In my case i have layout in my screen with ChipGroup and chips without id's. Then if I return to this screen from other's - I got this error "java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.CompoundButton$SavedState". So just added id's to chip's and all works fine.