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
Post a Comment