Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
09-28-2012 09:23 AM - edited 09-28-2012 09:26 AM
09-28-2012 02:19 PM - edited 09-28-2012 02:22 PM
bb::system :: phone::Phone phone;
This three fields returned a empty string on Dev Alpha device and Simulator.
09-28-2012 02:20 PM
This can get
09-28-2012 03:03 PM
10-01-2012 01:24 PM
From the setting function --> general
I can see the phone number, provider... all the information I need. Just cannot get it from API.
Not sure, cause by this is a dev device or not..
11-08-2012 08:07 AM
You can obtain the OS version by using the BlackBerry Platform Services API to obtain deviceinfo, which in turn can be used to obtain OS version:
11-08-2012 11:04 AM
Thank you. I can get OS version, but I can not get these three
11-08-2012 11:39 AM
You should be able to retrieve the device name using the HardwareInfo API call deviceName()
...and you can get hold of the network code using the SimCardInfo API call mobileNetworkCode()
...and for phone number, it looks like Line.address() is what you're after. You can get hold of the Line object using the Phone API
Please 'like' if this assists you.
11-08-2012 11:49 AM
Just to clarify, using the SimCardInfo API, you'll need to map the mobileNetworkCode (MNC) in combination with the mobileCountryCode (MCC) to a list of carriers if it's the verbose name of the carrier company that you're after.