05-13-2013 06:49 PM
After running my Z10 ported app on the Q10 I was extremely shocked to see change in functionality (let alone assets and screen size, etc..).
This 1 liner no longer works:
I have even tried:
And no luck.
What is the deal with that and is there a fix? (Scratch that, I just want the fix, don't care for bug definitions)
It would be very nice to have the same API calls work on both devices the same way.
Solved! Go to Solution.
05-21-2013 03:19 PM
You may or may not like this, but here's a complete history of getDeviceId() and why it's all messed up / broken.
In the early days of Android Player (Playbook), there were many apps that relied on getDeviceId returning something valid. But Playbook didn't have a cellular stack, so returning an IMEI was impossible. So there was a decision to return the serial instead.
10.0, BB10 launch comes around, and this part is mistakenly omitted. So it still returns serial no.
10.1 on Q10 comes around, and we've realized our mistakes (we've had numerous devs point out that it's returning the serial no and not the imei and so we should fix it). So it's changed to return IMEI.
Unfortunately, there's a bug in the 10.1 initial release. getDeviceId will only return the IMEI if there's a SIM card installed. Otherwise it's going to return null. Oops! However Build.SERIAL should continue to return the serial no bug free.
Upcoming 10.1 maintainence releases will address this problem. It will return the IMEI on phones, regardless of sim status.
05-21-2013 08:28 PM
Thanks for the clarification!
Has it ever been a priority for BB devices to return BB PIN / BBID to Android VM? Is it because of the whole PIN to BBID conversion? Thanks again!