I want to save some that in an array and then use that . but the problem is that this is a large size data and I’m not sure if it’s good idea or even possible to save all of that into an array . probably I should have some mechanism like deleting array items from the top ?
this is an android application and it’s in real time so the speed is really important.
please help!
With the amount of data that you are mentioning, there are still two possibilities. If you want your data to be stored persistently – go for SQLite without any second thoughts. If you don’t want persistent storage – then
ArrayListwould be a better way to go rather than having an Array because performing operations onArrayListwould be much easier and faster(in certain cases),and you also won’t have to keep changing your array size manually.