BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Run MIDLET just in phones from one specific carrier (http://www.blackberryforums.com/developer-forum/139161-run-midlet-just-phones-one-specific-carrier.html)

kratos2007 07-09-2008 07:42 AM

Run MIDLET just in phones from one specific carrier
 
Hi,

I've developed an standard MIDlet (J2ME) and I need to run it just in phones from one specific carrier. I've thought to do it via IMSI (the IMSI number contatins the carrier and the country code), but apparently there's no way to get the IMSI number with standard methods such as System.getProperty("IMSI").

My question is: Is it possible to get the IMSI in J2ME? If not, does anybody knows how can I do to restrict my MIDlet to be used in one specific carrier?

Thanks in advance.

jrebeiro 07-09-2008 09:13 AM

Look in net.rim.device.api.system.Branding www(dot)blackberry(dot)com/developers/docs/4.2api/net/rim/device/api/system/Branding.html RIM Device Java Library: Class Branding

getVendorId()
Retrieves the vendor ID from the branding NV sector.

Then restrict your application using the appropriate vendor_id

Code:

100 T-Mobile US
101 AWS
102 Cingular Wireless
103 Nextel
104 Sprint PCS
105 Verizon
106 Alltel
107 Rogers
109 BWA (Aliant/Sasktel)
111 MM02 DE
113 Telfort
114 T-Mobile DE/AU
115 TIM
116 Hutchison
117 Bouygues
118 SFR
119 Orange_France
120 VODAFONE (UK)
121 Telcel
122 Telstra
123 T-Mobile (UK)
124 Vodafone Germany
125 MM02 UK/IRL/NL
126 Telus
127 SMART
128 Starhub
129 Telefonica
130 Swisscom
131 Cable & Wireless
132 Vodafone (IT)
133 Vodafone (ES)
134 T-Mobile (NL)
135 Cincinnati Bell
136 Telefonica_LAM
137 Vodafone Austria
138 Vodafone Australia
139 Vodafone Ireland
140 Vodafone Sweden
141 CSL
142 Orange UK
143 Vodafone New Zealand
144 SingTel
145 Globe
146 Optus
147 Orange Mobistar
148 Vodafone_HU
149 Bharti
150 KPN
151 TIM_Greece
152 Proximus
153 Vodafone_Portugal
154 TIM_Brazil
155 BT_Mobile
156 Earthlink
158 E-Plus
159 BASE
160 Dobson
161 Vodafone_Egypt
162 Orange_Switzerland
164 Triton
165 Maxis
166 Vodafone_Denmark_(TDC)
167 MobileOne_(Voda_Singapore)
168 Vodacom
169 T-Mobile_PO
170 T-Mobile_CZ
171 T-Mobile_HU
173 MTN
174 Entel
175 Amena
176 SmarTone
177 TCS
178 Avea
179 F100
180 Turkcell
181 Partner
183 Orange_Global
186 Telkomsel
188 Vodafone_Greece
189 USCC
190 Mobilink
194 Voda_Luxembourg
195 Voda_Iceland
198 Vodafone_CZ
204 China_Mobile
205 Movilnet
209 Sympac
210 TIM_Argentina
212 Etisalat
214 AMX
215 Telefonica_Venezuela
217 Orange Romania
218 KTP
222 Mobitel Bulgaria
224 PCCW/Sunday
227 Mobily
229 Eurotel
230 Hutchison Essar

How do you actually do this? I have no idea.. I just starting looking into the JDE and have zero knowledge of Java... still learning. Maybe someone more experienced.. perhaps yourself.. can post some code examples for everyone else who is interested in learning this.

Hope this helps!

kratos2007 07-10-2008 01:29 AM

Thanks.

Info abput the vendor is also contained in IMSI... but my problem is be able to get the IMSI with BlackBerry API and J2ME standard APIs... difficult target!


All times are GMT -5. The time now is 12:33 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.