Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor daveice's Avatar
    Join Date
    Jan 2006
    Posts
    174
    Using CApSettingsHandler to choose an IAP, it supposed to work on any S60 2nd and 3rd devices.
    Code:
    		 CActiveApDb* aDb = CActiveApDb::NewL();
         CleanupStack::PushL(aDb);
         
         CApSettingsHandler* settings = CApSettingsHandler::NewLC(
                 *aDb,
                 ETrue,
                 EApSettingsSelListIsPopUp,
                 EApSettingsSelMenuSelectNormal,
                 KEApIspTypeAll,
                 EApBearerTypeAllBearers,
                 KEApSortUidAscending,
                 0,
                 EVpnFilterBoth,
                 ETrue);
         TInt iapRet = settings->RunSettingsL(0, iSelectedIap);
         CleanupStack::PopAndDestroy(settings);
         CleanupStack::PopAndDestroy(aDb);
         if (iapRet != KApUiEventSelected)
             {
             User::Leave(KErrNotReady);
             }
    However, I found it doesn't work on a few of S60 3rd devices, very strange sympton: the device has two IAP, ids are 3 and 6, after select one of them, the dialog was dismissed, but the selected value(TUint32 iSelectedIap) is 5 and 8.
    This bug is really terrible..

  2. #2
    Super Contributor Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    This API does not return IAPs, it returns WapIps, use CApUtils to convert the WapId to IAP
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Regular Contributor jupitar's Avatar
    Join Date
    Sep 2007
    Posts
    247
    Iterate through CApSelect class instance, and make use of Uid(), should solve your problem

  4. #4
    Regular Contributor gammav's Avatar
    Join Date
    May 2008
    Posts
    139
    Quote Originally Posted by Paul.Todd View Post
    This API does not return IAPs, it returns WapIps, use CApUtils to convert the WapId to IAP
    Strange, as per S60 documentation it is UID

    IMPORT_C TInt CApSettingsHandler::RunSettingsL ( TUint32 aHighLight,
    TUint32 & aSelected
    )

    Starts the settings component.

    Creates dialog(s) from scratch, launches and executes them. Can leave with error codes.

    Parameters:
    TUint32 aHighlight The UID of the AP to highlight by default
    TUint32 aSelected The UID of the access point selected by the user.

Similar Threads

  1. Launching a dialog when the application starts
    By Uriah Eisenstein in forum Symbian User Interface
    Replies: 10
    Last Post: 2009-03-31, 09:06
  2. How to let syncML run without prompting IAP dialog
    By zhou533 in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2008-04-09, 10:24
  3. Access Point selection dialog
    By _root in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2004-09-20, 07:16
  4. System Help with nokia pc connectivity SDK
    By gotka in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2004-07-06, 09:56
  5. Dialog causes System Error on 7650
    By mikkyt in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-04-17, 08: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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved