i have found android stock camera app, when passing image caller via parcelable on intent reduces size ~50k.
search next text in below source code link: limit 50k pixels can return in intent
source code link: android stock camera source code
my question is, why limit, , real size limits of data can pass via intent? find forums talking this, no real documentation google on limits.
this related binder transaction buffer:
during remote procedure call, arguments , return value of call transferred
parcel
objects stored in binder transaction buffer. if arguments or return value large fit in transaction buffer, call fail ,transactiontoolargeexception
thrown.the binder transaction buffer has limited fixed size, 1mb, shared transactions in progress process. consequently exception can thrown when there many transactions in progress when of individual transactions of moderate size. 1
if exceed binder transaction buffer limit, you'll transactiontoolargeexception
.
the limit supposed 1mb varies device little less 512kb full 1mb.
Comments
Post a Comment