# To provide & serve...content

- Speaker: [Roy Benyosef](/wiki/speakers/roy-benyosef.md)
- Event: [Reversim Summit 2013](/wiki/years/2013.md)
- Video: https://www.youtube.com/watch?v=wle8Qghlzu0
- Transcript: [/transcripts/2013/31-wle8Qghlzu0.md](/transcripts/2013/31-wle8Qghlzu0.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Databases](/wiki/topics/databases.md), [Mobile Development](/wiki/topics/mobile-development.md), [Architecture](/wiki/topics/architecture.md), [Performance](/wiki/topics/performance.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores the challenges and strategies for managing content and data persistence in mobile applications. The speaker examines different approaches for data storage, ranging from high-level built-in components to custom database handlers and third-party tools. The main argument is that developers should rely on robust, platform-supported abstractions to ensure stability, proper threading, and backward compatibility. Ultimately, the audience learns how to effectively store, search, and serve data while avoiding common memory and performance pitfalls.

## Key points

- [2:22](https://www.youtube.com/watch?v=wle8Qghlzu0&t=142s) The speaker introduces the core data management challenges using the acronym of six S's: save, store, search, serve, support, and supply.
- [9:47](https://www.youtube.com/watch?v=wle8Qghlzu0&t=587s) Content providers are presented as the primary, well-documented, and native way to manage and share data in Android applications.
- [16:21](https://www.youtube.com/watch?v=wle8Qghlzu0&t=981s) The mechanics of setting up tables, schemas, and content URIs for SQLite databases are detailed.
- [19:42](https://www.youtube.com/watch?v=wle8Qghlzu0&t=1182s) Content URIs are explained as the addressing mechanism used to locate specific tables and rows within a content provider.
- [21:12](https://www.youtube.com/watch?v=wle8Qghlzu0&t=1272s) A live demonstration walks through inspecting the application database via the terminal shell and examining binary large objects.
- [22:15](https://www.youtube.com/watch?v=wle8Qghlzu0&t=1335s) The content resolver is introduced as the safe, higher-level interface used to interact with content providers across threads.
- [23:25](https://www.youtube.com/watch?v=wle8Qghlzu0&t=1405s) Object-Relational Mapping libraries are evaluated as an alternative for database management through annotations.
- [27:21](https://www.youtube.com/watch?v=wle8Qghlzu0&t=1641s) Custom database handlers are compared against other approaches, highlighting the trade-offs of lower-level control versus increased development effort and risk.

## Takeaways

- Use built-in platform components like content providers and content resolvers to handle data persistence safely and asynchronously.
- Be cautious with third-party ORM libraries as they may introduce memory overhead or break across future platform updates.
- Avoid blocking the UI thread with heavy database or preference operations to prevent app uninstalls by frustrated users.

## Questions this talk answers

- How should an Android application handle data persistence and storage efficiently without blocking the UI thread?
- What are the pros and cons of using native content providers versus third-party ORM libraries?
- When is it appropriate to use low-level database handlers instead of high-level platform abstractions?

## Technologies

Android, SQLite, Java

## Tags

android, architecture, data persistence, databases, mobile development, performance, sqlite
