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

Siemens Nema Size 3 3TF48 Contactor 100A 600V Coil 110/120VAC (14013)
$69.99
Siemens Nema Size 3 3TF48 Contactor 100A 600V Coil 110/120VAC (14013) pictureSiemens 3RT1044-1A Contactor Coil 110/120VAC 3RH1921-1DA11 (14012)
$89.99
Siemens 3RT1044-1A Contactor Coil 110/120VAC 3RH1921-1DA11 (14012) picture Draeger Siemens 4319260E525U etCO2 Module ;
$99.65
 Draeger Siemens 4319260E525U etCO2 Module ; pictureSiemens 3TH3040-0A Motor Starter 110 VAC Coil 3TH30400A 3TH30 40E (TB)
$23.99
Siemens 3TH3040-0A Motor Starter 110 VAC Coil 3TH30400A 3TH30 40E (TB) pictureSiemens Reversing Starter 3TD46 02-2AK6
$391.68
Siemens Reversing Starter 3TD46 02-2AK6 picture






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