Is There Any Limit of Bundle in Android

Is there any limit of bundle in Android?

I think the limit is 500kb.
You can save the passed object in a file and send the path of the file in the bundle instead.
You can check similar question asked by me at SO

Android App Bundle: Google Play 150MB limit seems to include the Dynamic Feature Module size?

The limit on 150 MB is on the download size at installation time.

Since you mentioned that you configured the dynamic features to be "install-time", they will also be served at installation time and are thus counted towards the limit.

You may want to consider images that are needed at installation time (which you can leave in the base module) and images that can be downloaded at a later time (which you can put in an on-demand module) using the Play Core SDK.

What is the limit when passing data between fragments when using Navigation Components?

Yes, it is reasonable, you basically pass a Bundle of arguments, which is limited to 500Kb - 1Mb, check this answer: Is there some limits in android' bundle?

android bundle size much bigger than in universal apk

App Bundle size is not a direct indication of how big it will be the download for the users. Also the 150MB limit is the compressed download size limit.

You should upload your App Bundle and use Play Console's App Bundle Explorer to double check the size of the downloads.

Google Play Store implements many optimizations to reduce downloads when it delivers application from and Android App Bundle.

You can find more information in the documentation: https://d.android.com/appbundle

Is there a size limit for putParcelableArrayListExtra?

There is the size limit for the bundle while performing the Activity transaction. In case the limit is exceeded the TransactionTooLargeException is thrown.

The Binder transaction buffer has a limited fixed size, currently 1Mb,
which is shared by all transactions in progress for the process.
Consequently, this exception can be thrown when there are many
transactions in progress even when most of the individual transactions
are of moderate size.

Reference: https://developer.android.com/reference/android/os/TransactionTooLargeException



Related Topics



Leave a reply



Submit