Chapter 6. Making Your App Orientation-aware

This chapter will walk you through the process of dealing with the Android application behavior on device configuration changes. In the course of this chapter, we will cover comprehensive details of the theoretical concepts, but we will not make any significant changes to the POIApp. The following topics will be covered in this chapter:

  • The Android behavior on configuration changes
  • Locking the Android application orientation
  • Saving the activity state for configuration changes
  • Adding alternative resources
  • Manually handling the orientation behavior

The Android behavior on configuration changes

All modern smartphones and tablets switch between portrait and landscape modes in response to the way a user rotates ...

Get Xamarin Mobile Application Development for Android - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.