×

Discussion Board

Results 1 to 14 of 14

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Lightbulb [moved] SIS Intallation problem in Location Based Application

    Hi I am developing an application based on Location API. My target device is Nokia N95 3rd Edition FP1. For my application I am using Location Capability. I am signing my application from symbian signed also. But at the time of installation I am getting an error "required application access not granted".


    I am using this simple code from SDK Help....
    #include <lbs.h>
    ...
    // Init Connection
    RPositionServer server;
    RPositioner positioner;
    User::LeaveIfError(server.Connect());
    CleanupClosePushL(server);
    User::LeaveIfError(positioner.Open(server)); // use default positioning module
    CleanupClosePushL(positioner);
    // Specify Requestors
    _LIT(KCntPhone, "+358501234567");
    _LIT(KSrvName, "MyService");
    RRequestorStack stack;
    CRequestor* contact = CRequestor::NewLC(
    CRequestor::ERequestorContact,
    CRequestor::EFormatTelephone,
    KCntPhone);
    stack.Append(contact);
    CRequestor* service = CRequestor::NewLC(
    CRequestor::ERequestorService,
    CRequestor::EFormatApplication,
    KSrvName);
    stack.Append(service);
    User::LeaveIfError(positioner.SetRequestor(stack));
    // Issue a Location Request
    TRequestStatus status;
    TPositionInfo posInfo;
    positioner.NotifyPositionUpdate(posInfo, status);
    User::WaitForRequest(status);
    User::LeaveIfError(status.Int());
    // Analyze Results
    TPosition position;
    posInfo.GetPosition(position);
    // Issue a new Location Request
    positioner.NotifyPositionUpdate(posInfo, status);
    User::WaitForRequest(status);
    User::LeaveIfError(status.Int());
    // Cleanup
    stack.Reset();
    CleanupStack::PopAndDestroy(service);
    CleanupStack::PopAndDestroy(contact);
    CleanupStack::PopAndDestroy(&positioner); // this will call Close() method
    CleanupStack::PopAndDestroy(&server); // this will call Close() method


    Kindly waiting for my solution.
    Narendar:Chhattisargh:INDIA

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: SIS Intallation problem in Location Based Application

    Hi,

    it means your application is using api's that requires more capabilities , debug your application and enable logging to windout.out on emulator and check which capability you are missing.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Smile Re: SIS Intallation problem in Location Based Application

    Most of the time I use directly device because of my machine is slow i.e. emulator starts very slow.
    So could you tell the the process to get missing capability on emulator?

    Regards,
    Narendar

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Smile Re: SIS Intallation problem in Location Based Application

    Now I am using ELFTRAN Command as following from command prompt on WindowsXP machine.

    elftran -dump s MyGPSApp.exe and then getting following output:
    .
    .
    .
    Secure ID:e0cd7a27
    Vendor ID:00000000
    Capabilities: 00000000 00028000
    ReadUserData
    Location
    .
    .
    But it there any way to find missing capability?
    The elftran command is giving me only used capability in my GPS Application.

    Regards,
    Narendar

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: SIS Intallation problem in Location Based Application

    The installer does not know about the real capabilities your code would need. All it does is checking if the capabilities listed in the .mmp file are covered by the signing. So make sure that you request the same set of capabilities for signing, which you have listed in the .mmp file.

  6. #6
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Question Re: SIS Intallation problem in Location Based Application

    I have mentioned only 2 Capabilities in MMP file i.e. LOCATION and ReadUserData.

    After creating sis file (with self generated key and cert) I send this file to Symbian Signed with my N95's IMEI No and shortly I'll get signed sis file in my mail. Then whenever I try to install this sis file in my device I get the following error.
    "required application access not granted"

    I am totally confused why I am getting this error. I know the basics of capability. There are 5 capability which are user grantable i.e.

    ReadUserData WriteUserData NetworkServices LocalServices UserEnvironment

    Other need Symbian Signed i.e. Location ReadDeviceData WriteDeviceData SwEvent and so on.

    I have use WriteDeviceData many times for my bluetooth on/off application and it worked successfully.

    So whay may be problem with Location capa...

    Please try to solve this problem.

    Kindly waiting....
    Narendar

Similar Threads

  1. Installation problem of CameraWrapper embedded sis file
    By djscorpion83 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2009-08-20, 08:23
  2. [moved] Problem with starting application
    By paintstripper in forum Symbian
    Replies: 16
    Last Post: 2008-09-22, 19:44
  3. [moved] Problem with Access to SIM Card Application
    By ivoaurelio in forum Mobile Java General
    Replies: 1
    Last Post: 2008-09-19, 19:05
  4. [Moved] Help on developing Location Base Service Application
    By kai_buki in forum Mobile Java General
    Replies: 16
    Last Post: 2008-03-10, 10:34
  5. Location based Python Application
    By cjellwood in forum Symbian
    Replies: 3
    Last Post: 2007-06-02, 13:59

Posting Permissions

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