×

Discussion Board

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

    Check used alocation technology

    Hi,

    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 ?

    Thanks,
    Syldinn

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Check used alocation technology

    Hi,
    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)
    {
    iPosServer.Close();
    iGPSAvailable = EFalse;
    return;
    }

    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);
    buf.SetLength(0);
    info.GetModuleName(buf);
    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 ))
    break;
    }
    }

    }
    }

Similar Threads

  1. Check-01 and Check -15:Symbian signed testing criteria
    By sumeet_netsmartz in forum Symbian C++
    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 C++
    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
  •