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

Android™ Development

Reply
Contributor
Posts: 15
Registered: ‎02-05-2012
My Device: Playbook
My Carrier: Fido

HELP android app wont appear in Portrait (stuck in landscape)

I hope someone can help me with this issue. it would be greatly appreciated.

 

I have an android app that looks and runs great. this app only works in Portrait mode, and is set in portrait mode via the androidmanifest.xml.

 

When I use the eclipse ADT BB tool to convert it to work on the playbook, the simulator automatically switches to portrait mode, but all the graphics/images/content of my app appear as if it is configured for landscape mode.


Does anyone have any thoughts on what is causing this isssue. Thank you.

 

 

Contributor
Posts: 36
Registered: ‎02-04-2012
My Device: None
My Carrier: Break Wind

Re: HELP android app wont appear in Portrait (stuck in landscape)

I'm having the exact same problem with my Android app. Moreover, all the graphics and text are horribly distorted.
New Developer
Posts: 10
Registered: ‎02-05-2012
My Device: Xperia X10i
My Carrier: TMN

Re: HELP android app wont appear in Portrait (stuck in landscape)

I have got the same problem, in xml layouts and even with canvas.
But i´ve only tested in the emulator, as i dont have a playbook to test.

Anyone have tried a locked android aplication on the actual device?

Contributor
Posts: 36
Registered: ‎02-04-2012
My Device: None
My Carrier: Break Wind

Re: HELP android app wont appear in Portrait (stuck in landscape)

In my case, I've discovered the reason for the portrait issue. I had the following statement in my onCreate():

 

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

 

I commented it out, and that resolved the problem.

New Developer
Posts: 10
Registered: ‎02-05-2012
My Device: Xperia X10i
My Carrier: TMN

Re: HELP android app wont appear in Portrait (stuck in landscape)

Yes, but doing that your app stop being in portrait mode at all.
And my game was made to work only on portrait, so i'll have to wait for a better fix, (As i'm still wating for my vendor account to be ativated to, i don't know if ill be able to get the app ready in time to get the free playbook )
Highlighted
Contributor
Posts: 15
Registered: ‎02-05-2012
My Device: Playbook
My Carrier: Fido

Re: HELP android app wont appear in Portrait (stuck in landscape)

I finally upgraded my playbook tablet to version 2.0.

 

I tested the app and it worked FLAWLESSLY.

 

This is ONLY AN ISSUE in the simulator. It is fine on the actual device.