Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Precondition :

Device already rotated to landscape mode before my application launched.

Issue:

Now from home screen while launching my application get device info is giving 240X320 which are the width and height of the screen in portrait mode.

so

 

1) how to get the correct width and height of the screen based on the current mode ?

2) Is there any API or some provision in BMP by which we will get screen current rotaion angle ?

My application used WindowMgr and registred for SCR_ROTATE event .

While application running, if screen got roated then screen properly switching between different modes  but during startup not working if phone is already in landscaope mode.

awaiting for answers!

 

 

 

You can use ISHELL_GetDeviceInfoEx with item AEE_DEVICESTATE_SCR_ORIENTATION to get the orientation details.

You can use ISHELL_GetDeviceInfoEx with item AEE_DEVICESTATE_SCR_ORIENTATION to get the orientation details.