Android - Intent "putExtra" -


i have next code:

´ arraylist<integer> vc = new arraylist<integer>; vc.add(1); vc.add(2); intent myintent = new intent(class1.this, class2.class); myintent.putintegerarraylistextra("key", vc); 

´ class2 receive correctly arraylist, but... after use next code: (basically same)

´ arraylist<integer> vc = new arraylist<integer>; vc.add(10); vc.add(20); intent myintent = new intent(class1.this, class2.class); myintent.putintegerarraylistextra("key", vc); ´ 

my second class received again first arraylist 1 , 2 values

any idea?

i think problem not instantiating arraylist arraylist<integer> vc = new arraylist<integer>(); using old values


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -