App data and files
Learn how to preserve your app and user data either as files on the device, in key-value pairs, in a database, or with other data types, and share data between other apps and devices. You can also add a backup service to let users store information in the cloud, sync it across devices, and recover it when they get a new device.
Documentation
- Data and file storage overview
- Save files on device storage
- Save key-value data
- Save data in a local database using Room
- Sharing simple data
- Sharing files
- Sharing files with NFC
- Printing files
- Content providers
- Open files using storage access framework
Videos
Additional resources
For more information about working with app data and files, consult the following resources.
Codelabs
单词积累
preserve:保存
sync it across devices:在设备之间同步