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
Highlighted
s2b
New Contributor
Posts: 4
Registered: ‎06-22-2012
My Device: BlackBerry PlayBook
My Carrier: none
Accepted Solution

Problems with qnx.display on PlayBook.

Hello.

 

I'm currently experimenting with multi-monitor access on the BlackBerry PlayBook. I set up a simple demo application to test the basic functionality, based on the examples in the documentation: https://developer.blackberry.com/air/apis/qnx/display/Display.html#isAttached()

 

package
{
	import flash.display.Sprite;

	import qnx.display.Display;
	import qnx.display.DisplayMode;
	import qnx.display.MirrorMode;
	
	[SWF(height="600", width="1024", frameRate="30", backgroundColor="#FFFFFF")]
	public class Demo extends Sprite
	{
		public function Demo()
		{
			var myDisp:Display = Display.display;
			
			if (myDisp.isAttached(1)) {
				myDisp.setRotation(1, 0);
				myDisp.setMirrorMode(1, MirrorMode.STRETCH);
			} else {
				myDisp.setRotation(0, 90);
				myDisp.setMirrorMode(0, MirrorMode.NORMAL);
			}
		}
	}
}

However the PlayBook keeps crashing once I use either setMirrorMode() or setRotation(). setMode() seems to work fine... I use the current version of the firmware (2.0.1.358).

Do you have any idea how I can fix this problem?

Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Problems with qnx.display on PlayBook.

Hi,

 

I'll look into it. What type of app are you trying to create?

 

-Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
s2b
New Contributor
Posts: 4
Registered: ‎06-22-2012
My Device: BlackBerry PlayBook
My Carrier: none

Re: Problems with qnx.display on PlayBook.

I'm using the Adobe AIR SDK for PlayBook 2.0.

https://developer.blackberry.com/air/apis/

Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Problems with qnx.display on PlayBook.

Hi,

 

I have filed a bug for this. It will be looked into and updated in an upcoming release.

 

Regards,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
s2b
New Contributor
Posts: 4
Registered: ‎06-22-2012
My Device: BlackBerry PlayBook
My Carrier: none

Re: Problems with qnx.display on PlayBook.

Thanks. Smiley Happy