언어 설정

Menu
Sites
Language
Orientation change event

Hi all,

My application is not receiving orientation change events.

I have necessary code to support orientation change - form inherits Tizen::Ui::IOrientationEventListener, implemented OnOrientationChanged() and added the listener to the form using the AddOrientationEventListener() method.

In the emulator when I rotate from Portraint -Landscape and vice versa, OnOrientationChanged() is not getting called.

In Settings, enabled Auto rotate screen also.

 

 

 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
youngsik yoon
call SetOrientation(ORIENTATION_AUTOMATIC) before AddOrientationEventListener() in your form and try again. it seems that the orientation mode should be enabled. below is quoted from dev guide. "The Form control can only listen to those changes to the orientation mode that are enabled by calling SetOrientation()"
Alex Dem
Hi, Try to run UI Builder and check your Form Properties->Orientation Mode It should be set Automatic there. Alexey.
Gary V
FYI, As of Tizen 2.2 Emulator: 1.) In Form::OnInitializing(void), call Form::SetOrientation(ORIENTATION_AUTOMATIC). 2.) In Form::OnInitializing(void), call Form::AddOrientationEventListener(*this). 3.) Within the Emulator itself (not the code), choose Settings >> Display, Auto rotate screen >> on. That last one, lovely It's Not a Bug It's a Feature Even In a Development Environment, just cost me a few hours of troubleshooting. Note that Frame::SetOrientation() suggested in the documentation as a Form-less alternative is deprecated. G.