Domanda

Is copying (audio)data from the MediaStore database (like path, title, artist etc.) to classes a good practice or should it be handled directly from the database? Is it necessary to create an instance of class "Song" for each song in the database? My main concern is that for huge audio collections it could end up with quite a lot of memory being used.

È stato utile?

Soluzione

Depending on what you are doing with the data it is probably fine to create instances of a Song class. Presumably you are just saving some strings/ints to each class so memory shouldn't be a big problem.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top