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

Java Development

Reply
Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel
Accepted Solution

9930 Bold is showing display in wrong mode

Hi All,

 

When I am working with my Application, I found that my application is not working with 9930 Bold.

 

Please check the image for it. Let me know, how can I resolve this issue which is device specific.

 

 Attachment-1.jpg

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: 9930 Bold is showing display in wrong mode

What orientation have you specified for your program?

Contributor
Posts: 17
Registered: ‎05-31-2013
My Device: Torch 9800
My Carrier: vodafone

Re: 9930 Bold is showing display in wrong mode

your problem is related with the layout of app or its a programatically?

will you please explain your bug?

Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: 9930 Bold is showing display in wrong mode

Hi Peter,

I am using only Portrait orientation for my whole Application.

Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: 9930 Bold is showing display in wrong mode

Zeenaveen, I am developing a simple Application which is working with all devices and simulators but when I was trying to launch the Application in 9930 Bold, then the screen orientation has been changed and treating as it has been launched in landscape mode.

I am using Display.getWidth() and Display.getHeight() for calculating screen width and height respectively. Also, I have declared application to launch in Portrait mode only.

Please let me know, if you have any solution.

Contributor
Posts: 17
Registered: ‎05-31-2013
My Device: Torch 9800
My Carrier: vodafone

Re: 9930 Bold is showing display in wrong mode

Hi Ankita,

 

These kind of device having only one ladscape mode. you can also check the device mode by following mehtod:

Display.getOrientation() == Display.ORIENTATION_LANDSCAPE

 

Then made a neccesary change according to landscape

 

Regards,

Naveen Kumar

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: 9930 Bold is showing display in wrong mode

I woud look at using code like the following rather than the code you are using:

 

                // Lock 'portrait' mode
                int directions = net.rim.device.api.system.Display.DIRECTION_NORTH;
                net.rim.device.api.ui.Ui.getUiEngineInstance().setAcceptableDirections(directions);

 

So devices with keyboards will lock into 'Landscape' mode, which is how you want to use them. 

Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: 9930 Bold is showing display in wrong mode

Thanks for your support Naveen.

 

I got solution using Peter's reply.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: 9930 Bold is showing display in wrong mode

[ Edited ]

Great - can you mark this as solved?  Instructions in Help link near top of screen.

Contributor
Posts: 17
Registered: ‎05-31-2013
My Device: Torch 9800
My Carrier: vodafone

Re: 9930 Bold is showing display in wrong mode

Gud