6

有人知道我可以通过广播发送的最大内容大小吗?内容是否在前台传输?数据大小如何影响设备的生产力?

4

1 回答 1

5

Does somebody know the max size of content which I can send via broadcast?

I would expect you to start running into problems around the 1MB mark for the entire parceled Intent, as there are limits on Binder-based IPC, which underlies the Intent system.

How the size of data affect on productivity of the device?

Since Intent objects get copied between processes as a result of broadcasts, you will consume a fair amount of RAM while the broadcast is going on, plus a fair amount of CPU time to copy the memory between processes.

I would agree with rciovati's comment: "IHMO a few kb are "huge" for passing with Intent".

于 2013-06-23T15:22:17.313 回答