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





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