Issue: Passing large data to second Activity

前端 未结 7 1559
别那么骄傲
别那么骄傲 2020-11-30 01:53

I\'ve got an strange issue. I was looking around the web but didn\'t find an answer. I\'m still a beginner in android programming. So let\'s go:

All I want to do is

7条回答
  •  天涯浪人
    2020-11-30 02:29

    As far as i remembered, up till API-8 (Froyo), there were some limitations (like 1MB) when passing parcelable objects through intents. However, you may simply write down your parcelable data into a file and send the file path to your next activity through bundle. Later, code your second activity to read the data from file and delete it afterwards.

提交回复
热议问题