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

Miller Welder 156313 Current Transducer 300 Amp Module Genuine OEM Part
$178.0
Miller Welder 156313 Current Transducer 300 Amp Module Genuine OEM Part pictureSubmersible Water Level Transmitter Level Transducer Sensor 0-5m H2O Range
$66.65
Submersible Water Level Transmitter Level Transducer Sensor 0-5m H2O Range pictureESI CKA 42419 Transducer Buffer Board for ESI 4400 Laser Trimming System
$99.99
ESI CKA 42419 Transducer Buffer Board for ESI 4400 Laser Trimming System pictureJohn Deere Sensor Transducer AL176308
$29.99
John Deere Sensor Transducer AL176308 picture4-20MA Water Level Transmitter Liquid Level Transducer Sensor with 6M Cable
$68.56
4-20MA Water Level Transmitter Liquid Level Transducer Sensor with 6M Cable picture






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