Patent ID: 8723890

Claim:
A handheld electronic device comprising: a housing; a display assembly movably mounted to the housing and comprising a display screen on a front face thereof, the display assembly being movable between a first position and a second position, wherein in the first position a first portion of the display screen is hidden from view by the housing and a second portion of the display screen is viewable, and in the second position the first portion and the second portion of the display screen are both viewable; an image sensor on at least one of the housing or the display assembly for receiving image data representing an image; a processor configured to control operation of the display screen and image sensor; at least one position sensor for providing display screen position information to the processor indicating if the display assembly is in the first position or the second position; and an orientation sensor for providing device orientation information to the processor indicating an orientation of the handheld electronic device; the processor being configured to: store image data from the image sensor representing the image in an image file with image orientation information identifying an image orientation for the image, the image orientation information being determined in dependence on both the display screen position information and the device orientation information; the image orientation information identifying a portrait orientation when the device orientation information indicates that the handheld electronic device is in a vertically oriented position and the display screen position information indicates that the display assembly is in the second position; the image orientation information identifying a landscape orientation when the device orientation information indicates that the handheld electronic device is in a vertically oriented position and the display screen position information indicates that the display assembly is in the first position; the image orientation information identifying a landscape orientation when the device orientation information indicates that the handheld electronic device is in a horizontally oriented position and the display screen position information indicates that the display assembly is in the second position; and the image orientation information identifying a portrait orientation when the device orientation information indicates that the handheld electronic device is in a horizontally oriented position and the display screen position information indicates that the display assembly is in the first position.