BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 08-27-2007, 05:03 AM   #1 (permalink)
New Member
Join Date: Aug 2007
Model: 8800
Carrier: ABC
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Check Mobile Operator

Please Login to Remove!

Dear ALL,

I would like to ensure my applicaiton can only run on certain Mobile Operator,

my initial idea is use one of the followings. (so that it runs only if MCC=XXX & MCC=YY are matched):-
a. getHomeMCC() & getHomeMCC() (JDE 4.2) - not preferred as online is required
b. getIMSI() (JDE 4.1)

however, they are supported by JDE4.1 or later.
Are there any similar java class which is JDE4.0 can provide similar function?

(it is not preferred to ask client to send client info to server for authentication, as my application should be able to run during offline)

Thank you for your attention.

Old 09-02-2007, 11:08 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
Skipper_Joe's Avatar
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts

Maybe class net.rim.device.api.system.Branding can help you? It has method getVendorId() and list of vendor ids, which includes bunch of carriers.
Old 10-04-2007, 02:48 PM   #3 (permalink)
New Member
elDiego's Avatar
Join Date: Nov 2006
Location: Santiago, Chile
Model: 8520
Carrier: Entel PCS
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts


I tried to use getHomeMCCm and getHomeMNC, but I got strange results. The MCC should be 730 (Chile) but I got 1840, which doesn't match any other country. Do you know what's happening?

Thank you
Old 11-10-2008, 04:47 AM   #4 (permalink)
New Member
Join Date: Jun 2008
Model: 8100
Carrier: Vodafone
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts

convert the value return by getHomeMCC() into hex.

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