May 2022
Intermediate to advanced
688 pages
20h 12m
English
Now that you have your app deserializing JSON into model objects, take a closer look at how your implementation behaves across a configuration change. Run your app, make sure auto-rotate is turned on for your device or emulator, and then rotate the device quickly five or so times in a row. Inspect the Logcat output, filtering by PhotoGalleryFragment and turning soft wraps off.
15:49:07.304 D/PhotoGalleryFragment: Response received: [GalleryItem(... 15:49:16.794 D/PhotoGalleryFragment: Response received: [GalleryItem(... 15:49:20.098 D/PhotoGalleryFragment: Response received: [GalleryItem(... 15:49:23.565 D/PhotoGalleryFragment: Response received: [GalleryItem(... 15:49:27.043 D/PhotoGalleryFragment: ...
Read now
Unlock full access