1. thorne_'s Avatar
    I am trying to create a BB program that utilizes the GPS functionality of the BB 8800.
    I simply want to get the gps co ordinates from the phone and display this to the user.
    Please can someone out there help me with this?

    thanks
    12-06-07 05:55 AM
  2. wizard#CB's Avatar
    BlackBerry makes use of the Location API from JME (that's JSR 179 for those that care) which can be found at javax.microedition.location in the JDE.

    There quite a few options that go into accessing the API, but the simple version goes like this:

    try
    {
    Location location = provider.getLocation(-1);
    }
    catch (Exception e)
    {
    // uh oh
    }

    For what it's worth, you can only obtain the GPS information through the Java APIs, not via a browser or MDS.

    Source: http://blackberry.developercommunity.com/forum/getting_gps_information_from_blackberry
    12-07-07 09:28 PM
LINK TO POST COPIED TO CLIPBOARD