BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   get Pin using getDeviceId() (http://www.blackberryforums.com/developer-forum/89982-get-pin-using-getdeviceid.html)

ffrr 08-10-2007 09: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:
http://www.blackberryforums.com/deve...ng-midlet.html

I hope your orientation. thanks

CPO 08-10-2007 01: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 05: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 04:21 PM.

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