×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jan 2006
    Posts
    174

    Connect to internet using default IAP.

    a very old problem..
    I want to connect to internet using default IAP, without prompting user:
    I use http client code, with these statements:
    CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
    CleanupStack::PushL(commDb);
    CCommsDbConnectionPrefTableView* connectPrefView = commDb->OpenConnectionPrefTableViewOnRankLC(ECommDbConnectionDirectionOutgoing, 1);
    connectPrefView->GotoFirstRecord(); CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;
    connectPrefView->ReadConnectionPreferenceL(pref);
    iPehlaID = pref.iBearer.iIapId;
    TRAPD(err1, connectPrefView->UpdateDialogPrefL(ECommDbDialogPrefDoNotPrompt));
    CleanupStack::PopAndDestroy(2); // connectPrefView, commDb


    These codes works as it is supposed on device without WIFI, but prompt dialog always displayed on device with WIFI, how to solve this problem?

  2. #2
    Regular Contributor
    Join Date
    Jan 2006
    Posts
    174

    Re: Connect to internet using default IAP.

    Any idea about this?

  3. #3
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: Connect to internet using default IAP.

    Quote Originally Posted by daveice View Post
    Any idea about this?
    Have you set the default AP on device?

  4. #4
    Regular Contributor
    Join Date
    Jan 2006
    Posts
    174

    Re: Connect to internet using default IAP.

    default IAP is set.

    This code works well on a device without WIFI, but works bad on a device with WIFI.

Similar Threads

  1. Replies: 0
    Last Post: 2005-12-30, 13:18
  2. How to config Emulator Nokia series60 to connect to internet
    By x1054 in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-09-07, 11:28
  3. How to connect Nokia 7650 emulator to internet via the modem in my PC?
    By gekecn in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2002-10-16, 21:55
  4. Help us: configure 7650 emulator to connect it to the internet?
    By gekecn in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-10-10, 02:32
  5. Replies: 0
    Last Post: 2002-10-08, 01:20

Posting Permissions

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