Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 83
Registered: ‎02-17-2009
My Device: Not Specified
Accepted Solution

IMEI problems

Hi,

 

Simulator version 4.6.1.92

Device version 4.6.1.101 (without sim)

 

I'm having some problems while trying to get the IMEI using these two options:

 

    GPRSInfo.imeiToString(GPRSInfo.getIMEI())

    IDENInfo.imeiToString(IDENInfo.getIMEI())

 

On simulator both work well, but first one shows some dots between the 15 digits:

 

123456.78.123456.7

123456781234567

 

On the device I get a "UnsupportedOperationException" if I use the second one. No problem with first one but for the dots.

 

Any idea?

 

Regards

Developer
Posts: 22
Registered: ‎01-16-2009
My Device: Not Specified

Re: IMEI problems

Hi,

 

use

 

GPRSInfo.imeiToString(GPRSInfo.getIMEI(), false) to get the imei without periods.

 

As far as i know IDEN or GPRS should only be called if the device supports the network.

 

Regards,

Stephan