Results 1 to 4 of 4

[FONT=Arial]Hello all, I am currently working on a program for a school project that will ... BlackBerry GPS forum

  1. #1
    hearntho's Avatar
    hearntho no está en línea Stack level 1
    Join Date
    Jan 2007
    Posts
    1

    GPS Problems

    Advertisement



    [FONT=Arial]Hello all,
    I am currently working on a program for a school project that will be polling gps data off of the 7520 GPS-embedded blackberry. I cannot get it to run for the life of me, and I keep getting the following error:

    Starting BlackBerryGPS
    Class 'net.rim.device.api.gps.GPSRegistry' not found.Error starting BlackBerryGPS: Class 'net.rim.device.api.gps.GPSRegistry' not found.

    I have searched EVERYWHERE for this specific class and to my knowledge it doesn't even exist. The code that I am calling the GPS information from is:

    public String getLocation() {
    LocationProvider prov;

    try {
    prov = LocationProvider.getInstance(null);

    if (prov==null) {
    Status.show("GPS not supported on this device");
    return(null);
    }
    } catch (LocationException le) {
    Status.show("Failed to instantiate GPS provider.");
    return(null);
    }

    try {
    String loc = prov.getLocation(30).getExtraInfo("text/plain");

    Status.show(loc);
    } catch (LocationException le) {
    Status.show("30 sec timeout");
    } catch (SecurityException se) {
    Status.show("You do not have permission to query loc info");
    } catch (InterruptedException ie) {
    Status.show("An unexpected reset() called by another thread");
    } catch (Exception unknown) {
    Status.show("Unhandled exception, exiting");
    }
    return("test");
    }

    I'm not even calling this function yet, and as soon as the application begins to run on the BB, it crashes with the exception posted above. I have no idea what I am doing wrong here, any help would be GREATLY appreciated.

    Cheers!
    Tom[/FONT]

  2. #2
    cp6169's Avatar
    cp6169 no está en línea Device Pro
    Join Date
    Mar 2006
    PIN/ID
    3056468b
    Posts
    14,661

  3. #3
    knezek's Avatar
    knezek no está en línea Stack level 1
    Join Date
    Mar 2007
    Posts
    1

    Re: GPS Problems

    My first guess would be that you need to update your blackberry 7520. The current version is 4.1.0.380, but I know that the original version did not allow GPS(jsr 179).

    Can you get a location from the Location Based Services menu item in options?

  4. #4
    dhaba's Avatar
    dhaba no está en línea Stack level 1
    Join Date
    Sep 2007
    Posts
    1

    Re: GPS Problems

    Tom:

    I run into similar problem with my GPS apps reseting the mobile phone after a while. Do you have an answer to your question?

Tags for this Thread

Posting Permissions

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