×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Mar 2007
    Location
    Paris, France
    Posts
    78

    Location API and rights

    Hi,

    I encounter problems while accessing the location API.
    I try the examples given in "Location Acquisition API Specification" paper (3.4.1, Simple Location Request) and I run into problems with the SetRequestor instruction.
    I always get errors "unable to execute file for security reason" but it is signed with a DevCert with the 13 capabilities activated (including Location).

    Thanks for help or any advice
    Last edited by bergerc; 2007-03-14 at 10:00.

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Location API and rights

    Please try it in emulator and see if there is any useful information in the %TEMP%\epocwind.out log file.

  3. #3
    Registered User
    Join Date
    Mar 2007
    Location
    Paris, France
    Posts
    78

    Re: Location API and rights

    Hi,

    It doesn't say anything because the feature is not supported (error message from the emulator "Feature not supported (-5)"
    I even don't have any out file

    Thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Location API and rights

    Have you actually added the required capability to the executable (in the .mmp file and/or settings in Carbide)?

  5. #5
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Location API and rights

    Location applications can be tested on emulator since a simulation PSY is provided. See Settings -> General -> Positioning. Also, the SDK comes with excellent example applications for the Mobile Location Framework APIs.
    Last edited by ltomuta; 2007-08-03 at 10:01.

  6. #6
    Registered User
    Join Date
    Mar 2007
    Location
    Paris, France
    Posts
    78

    Re: Location API and rights

    Hi,

    Thanks for your help, I forgot to add the capability to the mmp file, I was convinced it was done automaticaly... sorry :/
    Last edited by ltomuta; 2007-08-03 at 10:01.

  7. #7
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    119

    Re: Location API and rights

    Quote Originally Posted by ltomuta View Post
    Location applications can be tested on emulator since a simulation PSY is provided. See Settings -> General -> Positioning. Also, the SDK comes with excellent example applications for the Mobile Location Framework APIs.
    How do I disable the simulation and enable retrieving the data from a real GPS module? I have paired my emulator with the GPS module, disabled the simulation positioning method, but there are no other methods to choose, despite the fact that the GPS is connected and working (tested with a real phone). How do I change that?

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Location API and rights

    In order to get the data from the real device via BT the emulator will need the Bluetooth PSY. However the emulator only supports the Symulation PSY and there's nothing you can do about it.

    I fail to see how connecting the BT device to the emulator will help your application development/testing. If needed you can save the NMEA strings sent by the device in a text file and then feed them to the application running in the emulator through the Symulation PSY.

  9. #9
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    119

    Re: Location API and rights

    Hi ltomuta,

    Well, if it's impossible, there's nothing I can do. I just wanted to see that my code works with a physical device, to make sure. I guess that if it works with the PSY simulation, it's fine.

    Thanks for the reply.

    Maciej

  10. #10
    Registered User
    Join Date
    Jun 2007
    Posts
    4

    Re: Location API and rights

    This is a very good post. Just as an update. Usually one gets the error with error code -46.

  11. #11
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Smile Re: Location API and rights

    Quote Originally Posted by shravang View Post
    This is a very good post. Just as an update. Usually one gets the error with error code -46.
    -46 is KPermissionDenied.

    Include respected/missing Capabilities in your .mmp file and rebuild/re-import the project.

    Kiran.

Similar Threads

  1. PIM API adding new contacts problem
    By hoppelmoppel in forum Mobile Java General
    Replies: 3
    Last Post: 2007-04-22, 17:12
  2. Replies: 2
    Last Post: 2007-02-06, 15:16
  3. Use drm api
    By zhuzy2004 in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2004-09-14, 07:43
  4. Bluetooth Java API missing from 3650 phone
    By kokuryu in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2003-10-14, 07:22
  5. DRM and JAVA API
    By sridhar_ratna in forum Digital Rights Management & Content Downloading
    Replies: 2
    Last Post: 2003-08-13, 05:50

Posting Permissions

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