05-10-2013 02:18 PM
I use the following code to obtain a PIN from Z10.
TelephonyManager tm = (TelephonyManager)getBaseContext().getSystemServic
However, this code returns a IMEI for a Q10. This is reported by a user and I don't have Q10 to debug. It is frustrated that Blackberry change the return value for a well known api.
Anybody knows how to get the PIN from a Q10?
05-13-2013 06:42 PM
For me, that returns null so I'm also surprised that you're actually getting something.
The biggest difference is that the same line of code returns the BB10 device serial on the Z10 while on the Q10 it's just plain old null. (See http://supportforums.blackberry.com/t5/Android-Run
Any help from BB officials would be greatly appreciated!
05-23-2013 09:15 AM
Is this the offical answer from Blackberry?
My app has a dynamic licensing model. When user buys the app, App World send the device pin to my server, which records the pin to the backend database. When the user open the app, my code check the pin against the pin database to validate for the license. Now the code to obtain pin from the device does not work and the app cannot function. I have a lot of angry customers.
Please provide a solution. Otherwise, I need to pull my app from App World.
05-23-2013 10:06 AM - edited 05-23-2013 10:13 AM
I'm confused. There's never been an Android API to retreive the PIN.
Edit: See my response here in the following link for the details about getDeviceId.
05-23-2013 11:08 AM
I found this post. Maybe this is the solution.
The device PIN is returned as a token in the GCM intent listener when registration has been completed. It can be retrieved from the intent using the following code:
final String token = intent.getStringExtra("registration_id");