Im having the following objects in my class,
LatestRingtones latestRingtones;
MostDownloadedSongs mostDownloadedSongs;
LatestDialoges latestDialoges;
LatestRingtones, MostDownloadedSongs,LatestDialoges extends sugarrecord.
So, I have created an arraylist to store object of various types as follows,
public List<SugarRecord> streamingTrackList = new ArrayList<>();
I tried to add the latestRingtones as follows
streamingTrackList.add(latestRingtones);
but im getting an error like List can not be applied to jsonarray
How can i be able to convert the jsonarray to list and add it to streaming track or is there any ways through which I can add object of various types to streamingTrack?
latestDialogeTen? Is it a list or object? More code will be helpful to understand your situation.