var listPackets = ArrayList<IntArray>()
How do I pass list packets from one activity to another activity
            Asked
            
        
        
            Active
            
        
            Viewed 261 times
        
    -3
            
            
         
    
    
        Vinayak Moger
        
- 120
- 5
- 
                    It is more than 10000 size data – Vinayak Moger Dec 03 '20 at 08:17
- 
                    3if the data is large you should persist it instead of passing between activities – zedlabs Dec 03 '20 at 08:22
- 
                    Why so you even need to send arraylist from one activity to another – AbhayBohra Dec 03 '20 at 09:30
1 Answers
0
            
            
        Passing a List from one Activity to another
Example:
ArrayList<String> myList = new ArrayList<String>();
intent.putExtra("mylist", myList);
In the other Activity:
ArrayList<String> myList = (ArrayList<String>) getIntent().getSerializableExtra("mylist");
 
    
    
        Jie Xu
        
- 99
- 8
- 
                    If arraylist is less in size it works fine, But i have more than 10000 data and each item string length is around 45 characters. If arraylist size is less than 2500 then it works fine – Vinayak Moger Dec 15 '20 at 05:12
-