Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing ArrayList<MyObject> Between multiple Activities

I am trying to pass an ArrayList of Objects between multiple activities in my application. Is it possible to do this using an Intent using the setData() method?

like image 976
Javacadabra Avatar asked Dec 05 '12 11:12

Javacadabra


Video Answer


1 Answers

If you want to send an ArrayList of objects then your class must implement the Parcelable or Serializable interface .

See these good tutorials for sending custom object between Activities

http://androidideasblog.blogspot.in/2010/02/passing-list-of-objects-between.html

http://www.anddev.org/novice-tutorials-f8/simple-tutorial-passing-arraylist-across-activities-t9996.html

like image 58
ρяσѕρєя K Avatar answered Oct 20 '22 01:10

ρяσѕρєя K