For an application i need to store some data to be stored in one activity and then get it in another activity (the activities are not one after another). There might be about 15 data sets- each sets contain id and name. Plus, i don't need the data to persist after user leaves the application.
So, i can think of 2 options-
1) Put each id & name in objects and store the objects in an static array.
2) Save data to Sqlite.
Till now i knew and also was told- not to use static variables until needed too much but someone told me today that saving in Sqlite will just take off more memory and space without any reason; so, rather go for static array of objects.
Now my questions are:
1) which is the best option?
2) How much space does each option need and how do i know it?
A bit explanation will be highly appreciated.