×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    addProximityListener

    Hi
    I tried to use LocationProvider.addProximityListener(listener,coordinates,radius)
    with coordinates is
    new Coordinates(-33.91956111111, 151.2266583333, (new Float(48.0)).floatValue())
    but it ultimately throw the LocationException
    Any idea why,
    just wonder that can proximitylistener be used on S60 FP2 device
    thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: addProximityListener

    Hello snoopyAU,

    ..just wonder that can proximitylistener be used on S60 FP2 device..
    Which S60 FP2 this is about? S60 3rd Ed., FP2? Or S60 2nd Ed., FP2?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: addProximityListener

    I am using Nokia N95 8GB, I am not sure which one is the one in your list

  4. #4
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Bournemouth, UK
    Posts
    65

    Re: addProximityListener

    Quote Originally Posted by snoopyAU View Post
    I am using Nokia N95 8GB, I am not sure which one is the one in your list
    That would be S60 3rd Edition, I believe Feature Pack 2 but i think that it may only be feature pack one, please someone correct me if im wrong but i think the newer firmware and handsets use fp2
    Last edited by rooossone; 2008-09-26 at 11:23.
    Made With Caffiene And Sleepless Nights

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

    Re: addProximityListener

    N95 8GB is S60 3rd Edition Feature Pack 1 device. Even after firmware updates (you will not move from one platform version to another one with a firmware update)

    What comes to the original question. This sentence
    There is no proximity listener support, which is used to receive notifications of when the terminal enters an area (specified by coordinates and a radius).
    can be found in the Java ME Developer's Library (in the JSR-179 implementation notes)
    http://www.forum.nokia.com/document/...rs_Library_v2/

    Hartti

  6. #6
    Registered User
    Join Date
    Feb 2010
    Posts
    3

    Re: addProximityListener

    Why not simply use the LocationListener's callback when the terminal position has moved? Just spin off another thread to take this new location, and drill down through your landmarks, and decide which of them are within range using currentCoord.distance(landmark[x]) <= range?

    des

  7. #7
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: addProximityListener

    I'm just guessing that after one and a half year he most probably either has given up or he has found a solution

Posting Permissions

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