BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   get Pin using getDeviceId() (

ffrr 08-10-2007 10:55 AM

get Pin using getDeviceId()
Im using the next code to get the BB PIN:

int pin = DeviceInfo.getDeviceId();
textField1 = new TextField("PIN", Integer.toString(pin), 120, TextField.ANY);

apparently, I obtain the PIN, but the PIN that the funtion back to me is wrong, is not the original PIN....What Im doing wrong? something missing??

I checked already the next link of this forum:

I hope your orientation. thanks

CPO 08-10-2007 02:40 PM

Using Integer.toHexString(pin) instead of Integer.toString(pin) would make it look like the PIN number in the Status screen.

ffrr 08-10-2007 06:52 PM

succesful result
I replaced Using Integer.toHexString(pin) for Integer.toHexString(pin), and the result was good... thanks a lot !!

All times are GMT -5. The time now is 09:25 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.