Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
navan1983
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

9530 Simulator: Device height and width

What is the height and width of the 9530 Simulator in portrait and landscape mode?.

 

Do we handle to any events when the user changes the orientation?

 

Thanks,

Navaneeth

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: 9530 Simulator: Device height and width

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: 9530 Simulator: Device height and width

Regarding events related to display orientation change - I did not find anything like that in RIM API 4.7 javadocs.
Please use plain text.
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: 9530 Simulator: Device height and width

Some of the 4.7 devices' browsers support the orientationchange event. You can add a listener using window.onorientationchange, and read the current orientation using window.orientation. It is similar to what is described at http://ajaxian.com/archives/iphone-windowonorientationchange-code
Please use plain text.
New Developer
navan1983
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Re: 9530 Simulator: Device height and width

I tried with the 9530 simulator. But it does not seem to work.

 

Any specific version of 9530 simulator where the orientatiochange works?

 

Thanks,

Navaneeth

Please use plain text.
Retired
saziz
Posts: 76
Registered: ‎07-11-2008
My Device: Z10

Re: 9530 Simulator: Device height and width

Have you tried the code snippet mentioned in the following article:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/852943/How_To_...

Sarim
BlackBerry Development Advisor
www.BlackBerryDeveloper.com
Please use plain text.