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

Adobe AIR Development

Reply
Developer
pedgarcia
Posts: 119
Registered: ‎03-10-2010
My Device: Bold 9000

Every application has to be orientation-aware?

Although I understand that a user-friendly application should allow its use in portrait or landscape orientation, I'd like to know if there is any kind of "rule" stating this. 

 

My concern is that there are applications that simply don't work in a certain orientation, and if it can prevent it to be approved, etc...

 

Thanks

 

 



(*) Kudo-me if you really think I helped you!
My plug: I'm doing a Mobile Experiment, reported on my Blog: Check it out!.
---------------------------
Paulo Garcia
http://www.mobilecreators.com - Twitter: http://twitter.com/mobilecreators
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Every application has to be orientation-aware?

Very good question.

 

  • Need to know what event to listen to and know the current orientaion of the device.
  • Need to know if this is a feature that is required for App World acceptance.
  • Probably goes along with a publish UI guide for the device (e.g. orientation aware, min size of buttons, power and memory low auto shutdown, app icon size.
  • How to re-orient the simulator
  • etc.
Developer
pedgarcia
Posts: 119
Registered: ‎03-10-2010
My Device: Bold 9000

Re: Every application has to be orientation-aware?

Hi,

 

RIM has been quite about these important points. I understand we're not working with a finished product yet, but at least the documents saying what to do will be great for now.

 

Regards

 

 



(*) Kudo-me if you really think I helped you!
My plug: I'm doing a Mobile Experiment, reported on my Blog: Check it out!.
---------------------------
Paulo Garcia
http://www.mobilecreators.com - Twitter: http://twitter.com/mobilecreators
Developer
shawnblais
Posts: 439
Registered: ‎10-25-2010
My Device: Not Specified

Re: Every application has to be orientation-aware?

 


jtegen wrote:

Very good question.

 

  • Need to know what event to listen to and know the current orientaion of the device.
  • Need to know if this is a feature that is required for App World acceptance.
  • Probably goes along with a publish UI guide for the device (e.g. orientation aware, min size of buttons, power and memory low auto shutdown, app icon size.
  • How to re-orient the simulator
  • etc.

 

The orientation and events are standard AIR 2.5 API's. There's a specific orientation change event that is fired, but on Android I;ve found that listening for Event.RESIZE on the stage is the easiest and most reliable.

 

What I'm wondering is if the tablet even supports portrait mode at all, doesn't really seem like the OS UI would fit well.

 

 

Developer
pedgarcia
Posts: 119
Registered: ‎03-10-2010
My Device: Bold 9000

Re: Every application has to be orientation-aware?

I'd surprised if it doesn't have a portrait mode, although I agree it looks nicer in landscape.

 

You know something!? I didn't see *any* picture of the Playbook in portrait so far!!! I've just checked RIM's website, and googled images and all were in landscape. It might be true!

 

Regards!



(*) Kudo-me if you really think I helped you!
My plug: I'm doing a Mobile Experiment, reported on my Blog: Check it out!.
---------------------------
Paulo Garcia
http://www.mobilecreators.com - Twitter: http://twitter.com/mobilecreators
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Every application has to be orientation-aware?

Thanks for the insight on the stage resize event.

 

So the big question is, will the tablet rotate to portrait mode??

 

I would think that is in the plan since e-books will be available on the platform.  It would be easier to read a book in portrait vs. current landscape.

 

The challenge to the community developers is to re-orient the GUI during the platfrom change.

Contributor
derekobrien
Posts: 12
Registered: ‎11-04-2010
My Device: Storm 9500

Re: Every application has to be orientation-aware?

I'm wondering if the AIR descriptor file will support:

 

 

<initialWindow>
	<autoOrients>false</autoOrients>
        <aspectRatio>landscape</aspectRatio>
</initialWindow>

 

 

for applications not requiring orientation repositioning.

BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Every application has to be orientation-aware?

Yes these xml attributes will be supported in the upcoming SDK versions

Developer
pedgarcia
Posts: 119
Registered: ‎03-10-2010
My Device: Bold 9000

Re: Every application has to be orientation-aware?

Just to complete de information, in today's webcast we've got confirmation that Playbook will support both portrait and landscape mode.

 

I have no idea about the simulator, though.

 

Regards



(*) Kudo-me if you really think I helped you!
My plug: I'm doing a Mobile Experiment, reported on my Blog: Check it out!.
---------------------------
Paulo Garcia
http://www.mobilecreators.com - Twitter: http://twitter.com/mobilecreators