×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2004
    Location
    in my home :D
    Posts
    20

    Question how to have this information from mobile

    hi,

    how can i know the ID of the Basic Section Transmision (BTS) that my phone is connected ?? i wont to devloppe an application, and i need to have this information !!!

    thx;
    fail to prepare, is prepare to fail !!

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: how to have this information from mobile

    Please don't start more that one thread about the same thing. You already have a thread here:
    http://discussion.forum.nokia.com/fo...d.php?t=173256

  3. #3
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    387

    Re: how to have this information from mobile

    cell ID>>>>>>>

    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;

    public class CellIDMIDlet extends MIDlet implements CommandListener {
    private Form form;
    private Command exitCommand;
    private String S40_cell_id; // Series 40 cell id property
    private String S60_cell_id; // S60 cell id property

    public void startApp() {
    form = new Form("Getting Cell ID");
    S40_cell_id = System.getProperty("Cell-ID");
    S60_cell_id = System.getProperty("com.nokia.mid.cellid");
    form.append("Series 40 devices: " + S40_cell_id + "\n");
    form.append("S60 devices: " + S60_cell_id);
    exitCommand = new Command("Exit", Command.EXIT, 1);
    form.setCommandListener(this);
    form.addCommand(exitCommand);
    Display.getDisplay(this).setCurrent(form);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }

    public void commandAction(Command c, Displayable d) {
    if (c == exitCommand) this.notifyDestroyed();
    }
    }




    network strength>>>>>>>>>>.

    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.midlet.MIDlet;


    public class NetworkStrength extends MIDlet implements CommandListener{

    private Display display;
    private Form form;
    // Commands.
    private Command exitCommand;
    private Command refreshCommand;

    // Output fields.
    private StringItem strength;
    private StringItem availability;


    /**
    * Constructor. Constructs the object and initializes displayables.
    */
    public NetworkStrength() {
    form = new Form("Network strength.");

    exitCommand = new Command("Exit", Command.EXIT, 2);
    refreshCommand = new Command("Refresh", Command.OK, 1);

    availability = new StringItem("Network status:", "");
    strength = new StringItem("Network signal strength:", "\n --- ");

    form.append(availability);
    form.append(strength);

    form.addCommand(exitCommand);
    form.addCommand(refreshCommand);
    form.setCommandListener(this);

    display = Display.getDisplay(this);
    display.setCurrent(form);

    checkNetworkStatus();
    }

    /**
    * From MIDlet.
    * Called when the MIDlet is started.
    */
    public void startApp() {
    // No implementation required.
    }

    /**
    * From MIDlet.
    * Called to signal the MIDlet to enter the Paused state.
    */
    public void pauseApp() {
    // No implementation required.
    }

    /**
    * From MIDlet.
    * Called to signal the MIDlet to terminate.
    * @param unconditional whether the MIDlet has to be unconditionally
    * terminated
    */
    public void destroyApp(boolean unconditional) {
    // No implementation required
    }

    /**
    * From CommandListener.
    * Called by the system to indicate that a command has been invoked on a
    * particular displayable.
    * @param cmd the command that was invoked
    * @param displayable the displayable where the command was invoked
    */
    public void commandAction(Command c, Displayable d) {
    if (c == refreshCommand) {
    checkNetworkStatus();
    } else if (c == exitCommand) {
    notifyDestroyed();
    }
    }

    /**
    * Called to check network availability and strength.
    */
    private void checkNetworkStatus() {
    String available =
    System.getProperty("com.nokia.mid.networkavailability");
    String signal = System.getProperty("com.nokia.mid.networksignal");
    //If network available.
    if (available!=null && available.compareTo("available") == 0) {
    availability.setText("\n"+available+"\n");
    strength.setText(signal);
    } else {
    availability.setText("\n unavailable \n");
    strength.setLabel("Error:\n");
    strength.setText("Unable to retrieve current battery level.\n" +
    "It's only available for signed midlets " +
    "under operator domain.");

    }

    }
    }

    try this ....if they give you some thing........dono exactly
    Thanks and Regards,
    Manjul.

Similar Threads

  1. Replies: 3
    Last Post: 2008-07-03, 22:05
  2. Fix problem on WLAN ad hoc between PC and Mobile
    By jusore in forum Mobile Web Server
    Replies: 0
    Last Post: 2008-06-30, 16:11
  3. Mobile Podcasting - will it happen?
    By mobile monte in forum News and Announcements
    Replies: 0
    Last Post: 2006-09-22, 23:45
  4. sonify.org to focus on mobile device audio
    By hp3 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-10-16, 16:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •