附加包裹的尺寸限制? [英] Size limitation on attached Parcelable?

查看:84
本文介绍了附加包裹的尺寸限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道附加到 Intent Parcelable 是否有大小限制?我再次阅读了一些有关 Intents Bundles Parcelable 的文档大小限制也没有。但是我读了一些答案,说附加的 Parcelable 的大小为限制(例如1 MB)。那么 Parcelable 是否受大小限制还是仅取决于设备?

I want to know is there any size limitation on Parcelable that attached to an Intent? I Read some docs about Intents, Bundles, Parcelable again and there was nothing about size limitation. But I read some answers, that say size of attached Parcelable is limited (for example, 1 MB). So are Parcelables limited by size or it only depends to the device?

推荐答案

在文档此处中进行了说明。每个进程的事务缓冲区为1 mb。根据我的理解,需要考虑的因素是:

Its explained on the docs here. The transaction buffer for each process is 1 mb. In my understanding the factors to be considered are:


  1. 单个交易的大小(最大1 mb)

  2. 交易次数(所有交易的总和应小于1 mb)

这篇关于附加包裹的尺寸限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆