Skip to content

Instantly share code, notes, and snippets.

@fangzhzh
Last active April 1, 2019 20:27
Show Gist options
  • Save fangzhzh/50659910ff2fffc9cb98e73ce38706f2 to your computer and use it in GitHub Desktop.
Save fangzhzh/50659910ff2fffc9cb98e73ce38706f2 to your computer and use it in GitHub Desktop.

flow from android developer

`Long running HTTP download?`
❓️
⬇️✅️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️➡️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️➡️ DownloadManager
❎
⬇️
⬇️➡️
`Deferrable Work?`
❓
⬇️❎️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️➡️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️️️➡️ Foreground Service
✅
⬇️
⬇️
`Triggered by system conditions?`
❓
⬇️
⬇️✅❎️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️➡️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️️️➡️ WorkManager
❎
⬇️
`Run at precise time?`
❓
⬇️
⬇️✅❎️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️➡️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️➡️️️️️️➡️ AlarmManager
❎
⬇️
WorkManager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment