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
New Contributor
Posts: 7
Registered: ‎01-28-2013
My Device: Curve
My Carrier: Movistar

Get BB10 Phone Number

Hi people, how we can get the cellphone number for BB10? (of course will be an ANE), what SDK function.

 

Thanks alot.

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

Re: Get BB10 Phone Number

I've never done this but I would start by looking at the phone API - https://developer.blackberry.com/cascades/reference/device_and_communication_phone.html 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
New Contributor
Posts: 6
Registered: ‎08-21-2013
My Device: Z10 Dev Alpha B
My Carrier: None

Re: Get BB10 Phone Number

dmalik, I think you are correct in how to read the phone number. 

 

I am running into a problem, however, trying to compile the native library for an ANE that uses the phone API, which is written in Qt. All of the examples of ANEs I see do not use Qt.

https://github.com/blackberry/Community-APIs-for-AIR/tree/master/BlackBerry10

 

I have modified the HelloAir ANE example built by the QNX Momentics IDE, but I run into 275 errors involving code I have not written (Qt) when compiling. 

 

Has anyone successfully built an ANE that uses Qt libraries? Or is there a way to read the phone number without using Qt?