Java – Is it OK to send large arrays via Intent?

Is it OK to send large arrays via Intent?… here is a solution to the problem.

Is it OK to send large arrays via Intent?

I want to send a large array from one intent to another. The array contains so many elements (about 50-100). So I’m wondering if sending large arrays via intent is a good programming practice. Will it affect the performance of my application?

Solution

Yes, it affects performance and is proportional to the size of the intent data,
Mobile devices have a smaller heap size and the intent data remains in the Activity object until destroyed.
Intent is basically loss-coupling in Java code for the Activity class.

Related Problems and Solutions