java - Android: ArrayList and app memory -


i have messaging application, in received messages stored in sqlite database. every time main fragment loaded, messages loaded arraylist, , arraylist passed recyclerview display.

there 1 thought that's been bugging me - if there many messages in database? arraylist may end consuming memory , app may crash.

how can resolve this?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -