If the screen is rotated by default Android destroys the activity and recreates it. This causes issues if a child and parent are already paired, as the connection is lost. To prevent Android from destroying the Activity, instead invoke a configuration change on an orientation or resize.
1.9 KiB
1.9 KiB