Maximum length of Intent putExtra method? (Force close)

As per my experience (sometime ago), you are able to parcel up to 1MB of data in a Bundle for IPC. This limit can be reduced if a lot of transactions are happening at a given time. Further information here.

In order to overcome this issue, I would suggest you to save your content on a temp file and pass the path/URI of your temp file to your second activity. Then in your second activity, read the contents out from file, perform your desired operations and finally delete that file.

If you want, you may also incorporate Shared_Preferences for this task – if you think handling files is cumbersome.

Leave a Comment