Challenge: Crime Image Orientation

Sometimes, the user will choose to take a picture in portrait orientation. Search the API documentation for a way to detect the orientation. Stash the correct orientation in your Photo and use it to rotate the picture appropriately in CrimeFragment and ImageFragment.

Get Android Programming: The Big Nerd Ranch Guide 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.