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
axg
Contributor
axg
Posts: 10
Registered: ‎04-20-2012
My Device: PlayBook
My Carrier: AT&T

flash.system.Capabilities.languages returning null

Hi

I am developing an app for PlayBook using FlashBuilder 4.6. I am trying to use the AIR API flash.system.Capabilities to get the languages array but it returns null. The same code works fine when I run it on iPad or Android app.

 

I know I can get around the error by using Capabilities.language as I need to access the first element in the array but thats only for now.

 

Has anyone else seen this problem?

Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: flash.system.Capabilities.languages returning null

Hi,

 

Please have a look at the qnx.locale package. A reference for the package can be found here-  https://bdsc.webapps.blackberry.com/air/apis/qnx/locale/package-detail.html 

 

Regards,

Dustin

 

 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.