The part where I am putting data into Bundle. The size of `countriesFromBundle` is more than 0.
And this is where I am getting the empty lists, like for ex. the size of `countriesList` is 0.
Android API wrote:For the specific case of savedInstanceState, the amount of data should be kept small because the system process needs to hold on
to the provided data for as long as the user can ever navigate back to that activity (even if the activity's process is killed).
We recommend that you keep saved state to less than 50k of data.
I think that the better solution would be to store the data in a database and then pass the primary key around.
Or possibly store the data in some temporary file and then access that data when you need/want to.
I know that there is a hard limit to the amount of data that you can send in a bundle around,
but I'm not too sure what it is as there are some conflicting reports out there.