×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Location
    South Africa
    Posts
    178

    JSR 179 with no GPS

    What happens if a device supports JSR 179 (location API), but doesn't have built in or bluetooth GPS? If I have a program that attempts to obtain a GPS location, will it crash, or just never pick up a GPS position? I do have a manual option in the program for selecting position, so I was just wondering if the application would at least still work, even though it can't detect position. There are many devices like this, such as the N93, N81, N76 etc, where this situation could potentially occur if bluetooth GPS exists.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: JSR 179 with no GPS

    Hi,

    If I remember it right, it might depend on the manufacturer's implementation. On Nokia devices it will try to get the coordinates from the built-in GPS if one is available, otherwise will try to find extenal GPS module. If it is not possible to get the coordinates, null might be returned by the acquisition methods, so you should check it to avoid NullPointerExceptions, etc...

    Br,
    Last edited by juarezjunior; 2008-05-28 at 22:51. Reason: type
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. Location API (JSR 179) without GPS..
    By d33 in forum Mobile Java General
    Replies: 21
    Last Post: 2008-08-01, 13:51
  2. Replies: 7
    Last Post: 2008-02-08, 12:02
  3. Location api jsr 179 and Bluetooth GPS
    By prategiov in forum Mobile Java General
    Replies: 21
    Last Post: 2007-12-04, 23:36
  4. JSR 179 - format of NMEA extra info field on the real N95
    By bt049088 in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2007-10-18, 08:27
  5. E61, CDC & JSR 179
    By jdesjean in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-06-27, 13:41

Posting Permissions

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