I have Activitythat uses
getWindow().getDecorView().getWindowVisibleDisplayFrame(rectangle);
to determine the usable screen space and decide where to place the images.
Returning to Activity after I press the back button to leave the Activityrectangle values
(0,0,800,480)
However, returning to Activity after I press the "home" button at the hardware level to leave Activity, the values of the rectangle
(0,38,800,480)
which discards the display and image placement.
How can I provide consistent values when called
getWindow().getDecorView().getWindowVisibleDisplayFrame(rectangle);
no matter how i left the application?
UPDATE: Thanks @Reno for the help in testing; it seems to depend on the version of Android than on the device.