From the course: Building Android Apps with Azure

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Test offline sync

Test offline sync

- [Instructor] Now we are ready to test offline sync. Let's hit the play button, and select my device. I'm going to switch over the emulator. Our app is up and running. Let's log in with Google. And after logging in, our app loads up two bookmarks, and this is expected because that's what we have in the portal. I'm going to hit refresh in the portal just to confirm we have two bookmarks. Now let's go to our device, and pull down the top menu and let's put our device into airplane mode. Now let's add a new bookmark. I'm going to press the FAB button. The title will be test 33. The URL will be slack.com, and the notes will be notes for slack. Let's press on add bookmark. When I hit refresh, the push operation will fail because we're offline. We can confirm that by going to our Azure portal and select refresh. So when I hit refresh, the new bookmark that we added does not show up because we're offline. Now let's go back to our device, pull down the menu and let's exit airplane mode. So…

Contents