database - Android Cursor over Generic list of business objects? -


In the .NET land, I usually ask the database and archive a general list type archive. Then the app will use it.

In the Android land, I am reading about DB access and I am using it in apps. Why do most docs use a cursor and use constants to use it? Is it to save resources?

Is it meant to save resources?

Of course. + Display
The general rule is to avoid creating objects, because you are limited in memory, CPU power (and resultant battery life) and garbage collection is rather expensive.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -