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

Vintage Mac Tools 1/2" Fan Clutch Wrench - S140
$6.99
Vintage Mac Tools 1/2MAC6-6 MOTOROLA METAL CAN Triac Vintage NEW
$9.95
MAC6-6 MOTOROLA METAL CAN Triac Vintage NEW picture¼” ratchet vintage very nice cond Mac Tools MR5 (( Loc23 ))
$30.2
¼” ratchet  vintage  very nice cond   Mac Tools  MR5    (( Loc23  )) pictureVintage MAC Tools 5/16" x 1/4" Double Open-End Wrench, D1, USA
$7.5
Vintage MAC Tools 5/16Vintage MAC V306, 15/16", 6-Point Impact Socket with a 1/2" Drive
$11.99
Vintage MAC V306, 15/16






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