7. Database
● Big deal to store two values
● Usually the table has only one row
● Useful when DB queries requires a user
8. Account Manager
● Higher initial cost
● It’s recommended by Google
● Perfect place to share user credentials
● Authenticator provider
Sync service :)
12. Let’s sync
● Most apps fetch data from servers
● Can’t block UI
● Triggered periodically
13. Sync Adapter
● Triggered by Android Service
ContentResolver.addPeriodicSync()
● Implicit and/or periodic run
ContentResolver.requestSync()
● If required can work as a separate process
<service android:process=":sync"/>
14. Authentication
● Perfect solution for application which share credentials:
- Enterprise
- Products of the same company
● Android proxies queries for authorization (package name)
● Sharing same certificates along apps allow access to credentials “Just Like
That”