-
Notifications
You must be signed in to change notification settings - Fork 1
wsanville/RotationDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This application introduces a reusable pattern for retaining running AsyncTasks during a screen rotation. The goal is to make it easy for activities to retain many different combinations of running AsyncTasks, as well as other data too. See BaseActivity/BasicRetainActivity for a simple example of fetching a weather forecast in an AsyncTask. Try rotating the screen around while the task is running and the dialog is present. Upon rotation, the dialog is dismissed, a new one is opened on the new activity, and the task continues. When complete, the host activity gets a callback.
About
Part of Touch Lab's internal traning curriculum. This application shows methods for retaining running background tasks during a config change, such as a screen rotation.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published