Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2010

    Check used alocation technology


    I am developing an application using either (A)GPS or Network-based location that should check the technology used for the fix.
    I've found a TTechnologyType in TPositionModuleInfo, and I tried using it. But if I disable AGPS in user settings, the ETechnologyAssisted flag is still set in my positioning module's info. I assume these flags just show the available technologies in the module, am I right ?
    Is it possible to know if a precise fix has been done with GPS, AGPS or network-based location using public APIs ?


  2. #2
    Super Contributor
    Join Date
    Mar 2008

    Re: Check used alocation technology

    Here is a piece of code that you can use in your code to print debug info about what module/technology type is used.
    Please ask again if not resolved your case.

    TUint module = 0;
    iGPSAvailable = EFalse;

    error = iPosServer.GetNumModules(module);
    if(error != KErrNone)
    iGPSAvailable = EFalse;

    TRACE_INFO((_L("CGpsPositionRequest:oInitialiseL module = %d"), module ))
    TPositionModuleInfo info;

    for(TUint i = 0; i < module; i++)
    error = iPosServer.GetModuleInfoByIndex(i,info);
    if(error == KErrNone && info.IsAvailable())

    TBuf<100> buf(0);
    TRACE_INFO((_L8("CGpsPositionRequest:oInitialiseL GetModuleInfoByIndex # buf= %S "), &buf))

    if(info.TechnologyType()& TPositionModuleInfo::ETechnologyTerminal)
    TPositionModuleInfo::TDeviceLocation deviceLoc = info.DeviceLocation();
    if (deviceLoc == TPositionModuleInfo::EDeviceInternal)
    iGPSAvailable = ETrue;
    TRACE_INFO((_L("CGpsPositionRequest:oInitialiseL iGPSAvailable = %d"), iGPSAvailable ))


Similar Threads

  1. Check-01 and Check -15:Symbian signed testing criteria
    By sumeet_netsmartz in forum Symbian
    Replies: 1
    Last Post: 2009-09-17, 09:04
  2. What Is the technology in Browser
    By S.S.Sudhakar in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-08-06, 06:50
  3. NXT Technology
    By Martin44 in forum Audio
    Replies: 0
    Last Post: 2005-01-13, 11:01
  4. CDMA technology.
    By ssoumya in forum Symbian
    Replies: 0
    Last Post: 2003-05-19, 10:22

Posting Permissions

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