×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    24

    Strange Location API behaviour on a C3-00 without SIM (WeatherApp)

    Hello,
    Using weatherapp on a C3-00 without a SIM card, the location API handling has a strange behaviour : the app starts and pops a view outside the app about bluetooth device search (as if it was looking for a GPS connected by BT ?), with Back you come back to the app and it pops cannot find Location (ok this is expected if he can't solve location).

    In LocationFinder.java, the handling is ;
    no CellIdLocationFinderImpl (because no SIM) -> go to GpsLocationFinderImpl ?
    otherwise i should see ViewMaster.VIEW_LOCATIONS if no provider.


  2. #2
    Nokia Developer Expert
    Join Date
    May 2012
    Posts
    224

    Re: Strange Location API behaviour on a C3-00 without SIM (WeatherApp)

    Hello openskymap,

    Couldn’t get exactly what you see strange in Location API behavior with WeatherApp.

    C3-00 is Series 40 6th Edition (initial release) and don’t have built-in GPS. So, the only ways to get location in C3-00 is with Cell Towers (using SIM) or External GPS connected through your device Bluetooth.

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    24

    Re: Strange Location API behaviour on a C3-00 without SIM (WeatherApp)

    Hello,

    the expected behaviour for me should be : no CellIdLocationFinderImpl (because no SIM) , no GpsLocationFinderImpl (because no internal GPS) -> return null.
    The user sees an interface that is not clearly related to the fact that the device is looking for an external BT GPS device ... this should be managed by the developper : ok no internal device, ask if user want to try to connect to external GPS, if yes launch the BT seek.

    Thanks

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Strange Location API behaviour on a C3-00 without SIM (WeatherApp)

    the expected behaviour for me should be : no CellIdLocationFinderImpl (because no SIM) , no GpsLocationFinderImpl (because no internal GPS) -> return null.
    The application's behavior is very similar to what you describe: first it attempts a Cell-Id retrieval, then a GPS retrieval (if the Location API is supported by the device) and finally, if the location API is not supported, the MIDlet is launched in network mode only. C3-00 is 6th Edition as mentioned here, and the device supports the Location API but it doesn't come with a built-in GPS. The second you retrieve the LocationProvider, the series 40 software (and not the API) launches the Bluetooth search. Unfortunately there is no way to know at runtime, if a device that supports the Location API, has a built-in GPS or not, in order to skip the call to the LocationProvider. If you cancel the Bluetooth search or it let it time out, then you get a null value for you LocationProvider instance, and then you can hide all GPS related actions.

Similar Threads

  1. Strange behaviour
    By hansorkrutor in forum Symbian
    Replies: 0
    Last Post: 2010-03-02, 15:56
  2. Strange behaviour
    By ajitac in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 2
    Last Post: 2008-04-21, 12:15
  3. Strange IAP behaviour
    By demasi.m1nd in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-10-11, 02:19
  4. IAP strange behaviour
    By demasi.m1nd in forum Symbian
    Replies: 0
    Last Post: 2007-10-10, 18:59
  5. Strange AO behaviour
    By objective_dev in forum Symbian
    Replies: 2
    Last Post: 2006-12-19, 07:33

Posting Permissions

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