×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    20

    Unable To Call Location API in S40 6th Ed Device

    Hello,

    I have developed a simple midlet which reads the locational information (using javax.microedition.location.Location) and displays it on the screen. This works perfectly on an E72 (S60 3rd Ed Device). However, when I run the same application on a 6303C (S40 6th Ed Device), the midlet behaves abnormally.

    The Command that calls the function to get the location in E72, routes to BlueTooth Connectivity in 6303C. I cannot get it to call the locational functions. I have checked the device details for 6303C (http://www.forum.nokia.com/devices/6303_classic/), and it supports JSR-179 (locational API). But I still can't get the Midlet to behave.

    I also tried running the Location API Example (http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html). Even this behaves in the same way. Instead of normal/expected execution, A screen appears, directing the user to "New Search", or "Paired Devices".

    I have no clue on what is going wrong here. Especially because, the same application works smooth, on E72. Can anyone please lend some thoughts on this?

    Regards,
    Rohitesh.

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

    Re: Unable To Call Location API in S40 6th Ed Device

    Well, this specific device does include the JSR-179 API but it has NO integrated GPS chip...
    So you will need an external GPS receiver, which can be easily connected through the JSR-179 (thats the screen you get which asks for paired devices or search new GPS receivers)...

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    20

    Re: Unable To Call Location API in S40 6th Ed Device

    Oh! Thank You @Tiger79. I had wrongly assumed, that the presence of JSR-179 meant the presence of an integrated GPS chip!

    Regards,
    Rohitesh.

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

    Re: Unable To Call Location API in S40 6th Ed Device

    hehe,
    well thats a wrong asssumption that is easily made
    As you have discovered the JSR-179 API is only the API, as in the software interface/library with specific functionality... In this case to address some very specific hardware (GPS)... But it is never a guarantee that a device having the JSR-179 also actually has an integrated GPS receiver... My tip would be to always check the Devices Information page I used before, just to be absolutely sure (look for GPS and A-GPS) and before you end up buying the wrong device
    Anyways, GPS isn't widespread in the cheaper market (S40), but can be found in many modern S60 devices...

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Unable To Call Location API in S40 6th Ed Device

    With S40 devices you can use bluetooth API's to connect with external bluetooth GpS reciever, and even without JSR 179 you can read the location data from external GPS.

    thanks
    ~Amitabh

  6. #6
    Registered User
    Join Date
    Jun 2009
    Posts
    20

    Re: Unable To Call Location API in S40 6th Ed Device

    Thank you @Tiger79! Silly of me! However, the saving grace was, I didn't actually buy the phone. Was helping a friend in using the app.

    Regards,
    Rohitesh.

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Unable To Call Location API in S40 6th Ed Device

    I didn't actually buy the phone. Was helping a friend in using the app.
    Ok, now suggest him to bye a Bluetooth enabled GPS reciever.

    thanks,
    ~Amitabh

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

    Re: Unable To Call Location API in S40 6th Ed Device

    hehe,
    or sell the S40 device, add the 40 euro's for the Bluetooth GPS receiver and buy a 2nd hand decent S60 like a 5800XM...
    Here in the netherlands you can buy them for a 100 euro's second hand, you actually can't get rid of those :P

  9. #9
    Regular Contributor
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    52

    Re: Unable To Call Location API in S40 6th Ed Device

    Hi All

    I too have been trying to get the GPS with GPRS enabled Airtel SIM on C3-01 (JSR 179 is there). But I am still unable to get the location values. But the same code works on N8.
    PLease tell me how I can get the location without external GPS receiver. Is there no other option? My concern is that people using S40 or c3 phones should buy GPS receiver.

    Thanks
    rj12info

Similar Threads

  1. Unable to initiate debugging on an N82 device
    By fxtoltec in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 8
    Last Post: 2009-07-27, 13:04
  2. do we can add API on NOKIA ???
    By Anerty in forum Mobile Java General
    Replies: 18
    Last Post: 2009-07-15, 09:49
  3. S40 6th Edition RMS location
    By diegoq16 in forum Mobile Java General
    Replies: 13
    Last Post: 2009-03-30, 06:14
  4. J2ME Location API vs. Nokia Series 40 Position API
    By keyang_huang in forum Mobile Java General
    Replies: 1
    Last Post: 2005-04-27, 08:39
  5. Series 60 device with Location API (JSR-179) support
    By dotcdotc in forum General Development Questions
    Replies: 1
    Last Post: 2004-11-18, 17:04

Posting Permissions

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