offs3t / HoboMaps

Attempt to push initial codebase to GitHub with Android Studio's integrated Git VCS
1 stars 0 forks source link

No in-memory objects? DB only? #8

Open offs3t opened 8 years ago

offs3t commented 8 years ago

If you are writing new Android code from scratch, I would avoid an in-memory data model unless the app performs really complex OO manipulations, as a CAD program might, for example. But, for most programs, keep the data model in the database, and let the chain of Cursor, Adapter, and View objects do a lot of heavy lifting for you. http://programmers.stackexchange.com/a/168048

offs3t commented 8 years ago

http://stackoverflow.com/questions/3679664/android-best-practice-for-keeping-data-in-memory-and-database-at-same-time

Seems like another good discussion