how to lock "portrait" orientation

I am trying to build an app for kindle device. Want to lock orientation “portrait” only. Using following setting in build.setting.

settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”,
},
},
}

Using this setting, only current page gets locked. I mean if I move device to landspace, the current page remains in portrait. But as soon as I go to next page in app (when device is in landscape), the page gets distorted.

Any suggestions how to lock entire app for portrait orientation??

Thanks [import]uid: 175651 topic_id: 34321 reply_id: 334321[/import]

 orientation =  
 {  
 default = "portrait",  
 supported =  
 {  
 "portrait"  
 },  
 },  

is what I used in a Portrait only app. I can rotate it and it stays in portrait mode. I don’t support upsidedown though I probably should. [import]uid: 199310 topic_id: 34321 reply_id: 136468[/import]

The following build settings is supported on Android…
[lua]orientation =
{
default = “portrait”,
supported =
{
“portrait”,
“portraitUpsideDown”
}
}[/lua]

Your orientation set up is perfectly fine. I just tried the above settings on my 7" Kindle Fire HD and I didn’t see any problems when resuming my portrait app from a landscape window.

So, what do you mean by “distorted”?
Can you provide us a screenshot?

You can take a screenshot of what’s on your Android device’s screen via “ddms” which is in the “./AndroidSDK/tools” directory. Click on the ddms window’s “Device\Screen Capture” menu option to take a screen capture.

Can you send us a sample project that can reproduce this issue please? You can do so by clicking the “Report a Bug” link at the top of this web page. Give us steps on how to reproduce, a screenshot of the result (if you can), and tell us the specific model of the Kindle Fire device you are using (1st generation, Kindle Fire HD 7" or 8.9", etc.).

Thanks in advance. [import]uid: 32256 topic_id: 34321 reply_id: 136481[/import]

Hi Joshua,

Thanks for the reply.

I have opened a bug (Case 19861). I have attached screenshot as well as sample code to reproduce
it.

Please check and let me know how to resolve it.
Thanks [import]uid: 175651 topic_id: 34321 reply_id: 136754[/import]

 orientation =  
 {  
 default = "portrait",  
 supported =  
 {  
 "portrait"  
 },  
 },  

is what I used in a Portrait only app. I can rotate it and it stays in portrait mode. I don’t support upsidedown though I probably should. [import]uid: 199310 topic_id: 34321 reply_id: 136468[/import]

The following build settings is supported on Android…
[lua]orientation =
{
default = “portrait”,
supported =
{
“portrait”,
“portraitUpsideDown”
}
}[/lua]

Your orientation set up is perfectly fine. I just tried the above settings on my 7" Kindle Fire HD and I didn’t see any problems when resuming my portrait app from a landscape window.

So, what do you mean by “distorted”?
Can you provide us a screenshot?

You can take a screenshot of what’s on your Android device’s screen via “ddms” which is in the “./AndroidSDK/tools” directory. Click on the ddms window’s “Device\Screen Capture” menu option to take a screen capture.

Can you send us a sample project that can reproduce this issue please? You can do so by clicking the “Report a Bug” link at the top of this web page. Give us steps on how to reproduce, a screenshot of the result (if you can), and tell us the specific model of the Kindle Fire device you are using (1st generation, Kindle Fire HD 7" or 8.9", etc.).

Thanks in advance. [import]uid: 32256 topic_id: 34321 reply_id: 136481[/import]

Hi Joshua,

Thanks for the reply.

I have opened a bug (Case 19861). I have attached screenshot as well as sample code to reproduce
it.

Please check and let me know how to resolve it.
Thanks [import]uid: 175651 topic_id: 34321 reply_id: 136754[/import]