×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    16

    Location API (JSR 179) without GPS..

    Hi

    The location API supports several location methods, not only GPS. I'd like to use 'NETWORKBASED' oder CELLID'.
    I tried to implement this, but my problem is:
    I get a locationProvider instance, but the method getLocation() throws an LocationException. Why?
    Has anybody got this to work?

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Location API (JSR 179) without GPS..

    Your operator/carrier needs to provide locationing service for the Location API to work without GPS. Does it?

    Hartti

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    Yes, the network operator told me, that their network should support it. But how can I verify this?
    Is there a working application using a network based location method?

  4. #4
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    Does anybody have experience with this?

  5. #5
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Location API (JSR 179) without GPS..

    Quote Originally Posted by d33
    Yes, the network operator told me, that their network should support it. But how can I verify this?
    Is there a working application using a network based location method?
    Here is a sample app that could be of some interest to you.

    MIDP: Location API Example - Tourist Route
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html

    I haved tried this earlier on a GPS based phone and worked fine.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  6. #6
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    thank you for your answer. I have tried the TouristRoute MIDlet. It works fine with GPS, but it doesn't work, if GPS is "temporary unavailable". There is a bug in this MIDlet, because if a location provider is "temporary unavailable", it doesn't check if there are other location providers that are available.

    Any other suggestions?

  7. #7
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Location API (JSR 179) without GPS..

    Please make sure that your operator provides location for a Java app. Do you know any success cases in your network with a Location API based app working fine?

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  8. #8
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    No, I don't have any working application, that is what I'm asking for .
    Even the Nokia sample MIDlet contains bugs.
    The network operator states that the network supports location. How can I verify this?
    Are there any applications that work with network based location methods? The Nokia sample MIDlet doesn't. (again, because of a bug in the program, not because the network operator doesn't support it).

    How can I get a LocationProvider instance that uses the network to determine the position? The Nokia API always uses the GPS, even if it is not available.

  9. #9
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Location API (JSR 179) without GPS..

    You should use null as your location provider criteria. If you do not get a location provider with this when the GPS is not on, then your operator does not provide locationing service

    Hartti

  10. #10
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    Thank you for your help.
    I do get a locationProvider, locationProvider.getState() returns 1 (available!) but if I use locationProvider.getLocation(500), then I will get a locationException.
    What's wrong?

    I have tested this with two different networks on a N95 and on a N73. The same problem on both phones.
    Last edited by d33; 2007-05-31 at 16:25.

  11. #11
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    any ideas? Did I do something incorrect or is this a bug in Nokia's implementation?

  12. #12
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    No suggestions? I suppose this is a bug in nokia's API..
    How to inform nokia about such bugs?

  13. #13
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Location API (JSR 179) without GPS..

    d33,

    I got this answer from the development team:

    "The JSR-179 Location API itself does not provide a functionality to support Cell ID positioning but if the native Location Framework in S60 supports Cell ID positioning (i.e has Network Positioning Proxy or several of them) then it is also possible to get the cell ID position information from JSR-179. So the feature depends on the platform configuration."

    Hartti

  14. #14
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    Thank you for this information.
    Which S60 devices support Cell ID positioning?
    How can I request a LocationProvider that is available? LocationProvider.getInstance(Criteria) returns a locationProvider that are either available or temporarily unavailable. But the Problem is that you cannot request a provider that is available.

  15. #15
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Location API (JSR 179) without GPS..

    Has anyone got any idea? This location API is quite annoying. Like this, its not usable at all.

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 30
    Last Post: 2014-07-15, 05:44
  2. Location api jsr 179 and Bluetooth GPS
    By prategiov in forum Mobile Java General
    Replies: 21
    Last Post: 2007-12-04, 23:36
  3. Location API, but no GPS
    By redsmurph in forum Mobile Java General
    Replies: 3
    Last Post: 2007-01-30, 20:59
  4. Location API (JSR 179) in Nokia Phones
    By mgruebsch in forum Mobile Java General
    Replies: 1
    Last Post: 2004-09-17, 04:50
  5. JSR 179 location API for Linux ?
    By carln672 in forum Mobile Java General
    Replies: 2
    Last Post: 2004-07-30, 10:21

Posting Permissions

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