7. Databases and the UI
As apps increase in complexity, the need for data stored in a local database also increases. While previous chapters have discussed the details of storing data, they have not discussed how to take the data from a database and present it to a user. This topic is of significant importance since it is such a common usage pattern. This chapter presents some strategies for using the Android database APIs to show data to the user.
Getting Data from the Database to the UI
Before a UI can present data to the user, it must obtain the data from a database. This is an area where special attention needs to be paid to Android threads. Reading from a database requires reading from internal app storage and should not be done on the ...
Get Android™ Database Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.