# android.os.TransactionTooLargeException: data parcel size x bytes

**Code:** `TransactionTooLargeException` · **Category:** Android · **Seen on:** Android

Too much data was put into a Bundle/Intent/saved state, exceeding the ~1 MB Binder transaction buffer.

## Meaning

Large lists or bitmaps in Intent extras, Fragment arguments or onSaveInstanceState crash, often only when the app goes to background (“data parcel size … bytes”).

## Common causes

- Bitmaps or large lists in Intent extras/Bundles
- Large data in onSaveInstanceState / SavedStateHandle
- FragmentStatePagerAdapter saving many fragments

## Quick fix

1. Pass IDs, not data; load data from a repository
2. Keep saved state small
3. Use a file/DB/ViewModel for large data

## Detailed fix by platform

### Kotlin

1. `startActivity(Intent(this, DetailActivity::class.java).putExtra("itemId", item.id))   // not the whole object list`

## How to diagnose

1. **Size** — Bundle contents (TooLargeTool library)
2. **Timing** — On background/rotation?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/android/transactiontoolargeexception)
