BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-23-2009, 12:50 AM   #1
elaltaico
New Member
 
Join Date: Sep 2009
Model: 7100T
PIN: N/A
Carrier: SDFD
Posts: 5
Default how to retrieve CellID, MNC, MCC and LAC

Please Login to Remove!

Hello


I try to find Cell ID,MNC,MCC and LAC by using GPRSInfo.getCellInfo(). I compiled it with simulator and tried the program on three different Blackberry simulator(BlackBerry 8800-02, 9500 Vodophone, 9630) which I believe that they have GPS. Unforunately, all the values seem to equal to 0. I do not think my code is wrong. You can see the code below. Could you please tell me a way to see exact values of Cell ID, MNC, MCC and LAC? Do I need to find a real Blackberry telephone (which does support GPS) ? I can'T do it by using simulators? I would be so glad if you can assist me. Thank you in advance.


The code that I use to find out Cell ID, MNC, MCC and LAC:

Code:
   int CellId=GPRSInfo.getCellInfo().getCellId();
        int LAC=GPRSInfo.getCellInfo().getLAC();
        int MCC=GPRSInfo.getCellInfo().getMCC();
       int MNC=GPRSInfo.getCellInfo().getMNC();

       String CellId1=Integer.toString(CellId);
       String LAC1=Integer.toString(LAC);
       String MCC1=Integer.toString(MCC);
       String MNC1=Integer.toString(MNC);


       
       String CellId2 = System.getProperty("CellID");
       String LAC2 = System.getProperty("LocAreaCode");
       
    
        add(new RichTextField("Hello World!"));
      
        add(new RichTextField("Cell ID is="+CellId1));
        add(new RichTextField("LAC1 is="+LAC1));
        add(new RichTextField("MCC1 is="+MCC1));
        add(new RichTextField("MNC1 is="+MNC1));
        add(new RichTextField("MNC is="+MNC));
        add(new RichTextField("Cell ID2 is="+CellId2));
        add(new RichTextField("LAC2 is="+LAC2));
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


DC 100A 100V Voltmeter Ammeter Volt Amp Meter Voltage Current Tester with Shunt picture

DC 100A 100V Voltmeter Ammeter Volt Amp Meter Voltage Current Tester with Shunt

$12.99



LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter picture

LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter

$9.95



DC 100V 100A Voltmeter Ammeter Volt Amp Meter Voltage Current Tester with Shunt picture

DC 100V 100A Voltmeter Ammeter Volt Amp Meter Voltage Current Tester with Shunt

$14.48



Digital Multimeter Voltmeter Ammeter AC DC Volt Ohmmeter Tester Meter Auto Range picture

Digital Multimeter Voltmeter Ammeter AC DC Volt Ohmmeter Tester Meter Auto Range

$9.95



DC 50uA 1mA 20mA 30A 85C1 Class 2.5 Analog Amp Panel Meter Gauge Current Ammeter picture

DC 50uA 1mA 20mA 30A 85C1 Class 2.5 Analog Amp Panel Meter Gauge Current Ammeter

$86.09



US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-200A DC & Shunt picture

US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-200A DC & Shunt

$18.91







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