'When I try to start a Fragment to shoot the ID, the program crashes

When I try to start a activity from a Fragment which inside viewpager2,the program crash.I don't understand why it crash,because I am not using bundle to pass data。
The log :

android.os.TransactionTooLargeException: data parcel size 6034476 bytes

I guess the reason is on viewpager2. The Fragment in viewpager2 starts the activity and needs to save the page data.Can someone kindly tell me how to solve the bundle cache in this viewpager?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source