BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-17-2009, 04:47 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8300
PIN: N/A
Carrier: Software Developer
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default get IMEI number

Please Login to Remove!

Hi,

What is the function to get IMEI number through j2me on blackberry mobile?

Thanks
Tarjinder
Offline  
Old 09-17-2009, 05:56 AM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: don't know
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

import net.rim.device.api.system.IDENInfo.*;

IDENInfo.imeiToString(IDENInfo.getIMEI());
Offline  
Old 09-17-2009, 05:57 AM   #3 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: don't know
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

import net.rim.device.api.system.IDENInfo.*;

m_imei = IDENInfo.imeiToString(IDENInfo.getIMEI());
Offline  
Old 09-17-2009, 06:06 AM   #4 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8300
PIN: N/A
Carrier: Software Developer
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
switch (RadioInfo.getNetworkType()) {
			case RadioInfo.NETWORK_CDMA:
				IMSICode = CDMAInfo.getIMSI();
				break;
			case RadioInfo.NETWORK_GPRS:
				IMSICode = SIMCardInfo.getIMSI();
				IMEICode = GPRSInfo.getIMEI();
				break;
			case RadioInfo.NETWORK_IDEN:
				IMSICode = SIMCardInfo.getIMSI();
				IMEICode = IDENInfo.getIMEI();
				break;
			default:
				break;
			}

			codeLength = IMSICode.length;
			for(int i=0; i<codeLength ;i++) {
				IMSIStringb.append(IMSICode[i]);
			}
			IMSIString = IMSIStringb.toString();
			
			StringBuffer txt = new StringBuffer();
			for(int z=0; z<IMEICode.length; z++) {
				txt.append(IMEICode[z]);
			}
			
			IMEIString = txt.toString();
This is my code. Not getting any value of IMEI on Blackberry 8300 Curve.

Please help.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

MSA 4-Gas Qwest Kit, Altair 4X - 10114603
$1900.0
MSA 4-Gas Qwest Kit, Altair 4X - 10114603 picture(5PCS) ALTAIR05T-800TR IC PRIMARY SWITCHING REG 16NSOIC ALTAIR05 05T
$9.29
(5PCS) ALTAIR05T-800TR IC PRIMARY SWITCHING REG 16NSOIC ALTAIR05 05T pictureUsed ALTAIR 4X Multi GAS MONITOR DETECTOR ANALYZER METER H2S LEL CO O2
$99.95
Used ALTAIR 4X Multi GAS MONITOR DETECTOR ANALYZER METER H2S LEL CO O2  pictureMsa H2s Altair Pro Single Gas Detector,10074136,cal Cert Included
$42.0
Msa H2s  Altair Pro Single Gas Detector,10074136,cal Cert Included pictureAltair 02
$190.0
Altair 02 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.