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
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: using qnx.system.Device.pin

Documentation always lags development.  It will probably get in sync "soon".

Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: using qnx.system.Device.pin

The PIN in the Java SDK is also UINT, so I would have been surprised if it HAD been String. Someone just goofed.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Developer
Posts: 327
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition
My Carrier: Rogers

Re: using qnx.system.Device.pin

I heard that the PINs will be done away with over the next year in favour for BBID (so RIM can branch things like BBM to iPhones and androird, etc)... I'm still going to use this class when I can to get the info, and stay aware of updates in the PIN/BBID world.
CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Developer
Posts: 109
Registered: ‎12-04-2008
My Device: Playbook, Torch 9800, Storm 9530, Tour 9630
My Carrier: Telus

Re: using qnx.system.Device.pin

This seems broken on the 1.0.1 simulator:

var devid:uint = Device.device.pin;

var devicePIN:smileyfrustrated:tring = devid.toString(16); //cast to hex

 

It's back to a String now. Odd, though: when I try:

var devicePIN:smileyfrustrated:tring = Device.device.pin; 

trace(devicePIN);

I can see it is now returning 'null'. It worked in 0.9.4.

Huh? Well, that kind of breaks my licensing server...It relies on the PIN.

 

B

PlayBook Apps: Sudoku Pro
Smartphone Apps: Compass | MultiClock
BlackBerry Development Advisor
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: using qnx.system.Device.pin

You need to add <action> (permission) to ask user if they want to share the pin with you, please check the doc I don't remember exact spelling
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: using qnx.system.Device.pin

The one Elena's talking about is read_device_identifying_information 


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 109
Registered: ‎12-04-2008
My Device: Playbook, Torch 9800, Storm 9530, Tour 9630
My Carrier: Telus

Re: using qnx.system.Device.pin

[ Edited ]

Thank you both!

 

B

 

[Edit: so it now returns a String like this: "0x21d42ffe". I can handle that no problem; thanks again for setting me on track.

The odd thing now is that it doesn't match the PIN showing on the simulator under About > Hardware > PIN.

Why is that? Shouldn't they match? It says: FFFFA364

PlayBook Apps: Sudoku Pro
Smartphone Apps: Compass | MultiClock
Developer
Posts: 109
Registered: ‎12-04-2008
My Device: Playbook, Torch 9800, Storm 9530, Tour 9630
My Carrier: Telus

Re: using qnx.system.Device.pin

Hi,

Can anyone with an actual Playbook confirm that the PIN on the device is different from what is returned by qnx.system​.Device.pi​n...? Because that's the behavior I'm seeing in the 1.0.1 simulator.

thanks, B

PlayBook Apps: Sudoku Pro
Smartphone Apps: Compass | MultiClock
Developer
Posts: 1,452
Registered: ‎11-06-2009
My Device: Torch 9810
My Carrier: WiFi

Re: using qnx.system.Device.pin

Same issue :smileysad:

I've got a bad review because the PIN and board number the app displays for the user is different from the real device PIN and board number



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry
Developer
Posts: 109
Registered: ‎12-04-2008
My Device: Playbook, Torch 9800, Storm 9530, Tour 9630
My Carrier: Telus

Re: using qnx.system.Device.pin

Just following up: I received my PB yesterday (yay!) and found that the PIN on the device (About > Hardware) is the same as the PIN returned by Device.device.pin in code. Seems it was only different on the 1.0.1 simulator for me.

Brian

PlayBook Apps: Sudoku Pro
Smartphone Apps: Compass | MultiClock