improving Sample App's ability to respond to orientation change.

Signed-off-by: Brian Kiel <briankiel@gmail.com>