0

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.

nikita sharma
  • 169
  • 1
  • 8

2 Answers2

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
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.

Community
  • 1
  • 1
Nico
  • 221
  • 2
  • 14