How can I get the IMEI number when user clicks on a link form his/her blackberry? Maybe I can pass data to a php. Can somebody throw some light on how can I achieve this? Thanks you in advance.
Asked
Active
Viewed 375 times
0
-
2i don't think thats even remotely possible – Hanky Panky Jan 04 '13 at 06:38
-
if you get the click event, then you can use my answer. – Rince Thomas Jan 04 '13 at 06:43
2 Answers
0
This will programatically get the imei number.
private String getIMEINumber() {
byte[] imeiByteArray = net.rim.device.api.system.GPRSInfo.getIMEI();
String imei = net.rim.device.api.system.GPRSInfo.imeiToString(imeiByteArray);
imeiByteArray = null;
return imei;
}

Rince Thomas
- 4,158
- 5
- 25
- 44
-
Thanks for your reply. I know this. But what I want to do is that when the user clicks on a link then I could get his/her Imei no. This should be possible in some way. Can anybody help. Thanks a lot. – nikita sharma Jan 04 '13 at 06:47
-
-
-
-
so you have to know wether the user is clicked the link or not. Is it possible to get that ? – Rince Thomas Jan 04 '13 at 06:59
-
-
let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/22164/discussion-between-signare-and-nikita-sharma) – Rince Thomas Jan 04 '13 at 07:05
0
You cannot get the IMEI without handling it in your own application.
One way would be to write an application that can handle a custom url. See this: How to launch an application from the browser in BlackBerry
Your application could essentially handle this in the background.