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 -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -