Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2007

    Talking GPS in Nokia 6110 Navigator

    hi sir,

    i've tested fined the GPS in nokia 6110 Navigator with some shareware of MIDlet that read Position Informations from build-in GPS. now i'm trying to write a simple MIDlet that performs the same, the code as below and the midlet responsed "Location request timed out". seems like unable to read the information from GPS device, did i missed anything in the code? appreciate any helps. many thanks.

    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.location.*;
    import java.util.Date;

    public class TestLocation extends MIDlet implements LocationListener{
    private Display display;
    private Form form;

    private LocationProvider locationProvider = null;
    private Coordinates oldCoordinates = null, currentCoordinates = null;
    private float distance = 0;
    private int azimuth = 0;

    public TestLocation(){


    public void startApp() {
    display = Display.getDisplay(this);

    if (form == null) {
    form = new Form("TestLocation");

    try {

    // Create a Criteria object for defining desired selection criteria
    Criteria cr = new Criteria();

    LocationProvider lp = LocationProvider.getInstance(cr);

    // get the location, one minute timeout
    Location l = lp.getLocation(60);

    Coordinates c = l.getQualifiedCoordinates();

    if (c != null) {
    // use coordinate information

    } catch (Exception e) {
    // not able to retrive location information

    public void pauseApp() {}

    public void destroyApp(boolean unconditional) {

    public void displayMessage(String s) {
    Alert a = new Alert("", s, null, null);
    display.setCurrent(a, form);

    public void locationUpdated(LocationProvider provider, final Location location) {

    public void providerStateChanged(LocationProvider provider, int newState) {



  2. #2
    Registered User
    Join Date
    Sep 2007

    Smile Re: GPS in Nokia 6110 Navigator

    i found the caused of problem, everything works fined and can retrieve position information from built-in GPS when the "Buetooth GPS" at nokia phone menu \Settings\Phone Settings\General\Positioning\Positioning Methods is disabled, enabled rest of them, the problem occured when this option is enabled. means the MIDlet will try to connect to the bluetooth GPS when the option is enabled and it will not try the built-in GPS if failed to find the Bluetooth GPS.

    so my question here is how can i write a MIDlet to search for available built-in GPS else try to search for the bluetooth GPS?

    appreciate any helps...many thanks.


Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  2. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50
  3. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

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