×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Bangalore(INDIA)
    Posts
    25

    how to avoid Internet Access point selection dialog

    Hi All,
    I am working on porting the application from Seriese 60 SDK v1.0 to Seriese 60 SDK v2.0. I am facing the problem related to Internet Access Point. I dont want to select the IAP by dialog prompt. I am using the following code to avoid the prompting.


    RSocket iSocket;
    RSocketServ ss;

    CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;
    enum TNifTimerState
    {
    ETimerEnabled,
    ETimerDisabled
    };
    TBool iPromptFlag;
    RNif iNif;
    TInt iState;
    TInt iNifTimerState;
    CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref iPref;

    CCommsDbConnectionPrefTableView::TCommDbIapBearer bearer;
    CIntConnectionInitiator* iConnect;



    void CMinTcpEngine::ConstructL()
    {

    iPromptFlag=ETrue;
    iConnect = CIntConnectionInitiator::NewL();
    CActiveScheduler::Add(this);
    iNif.Open();
    }




    void CMinTcpEngine::StartTestL()
    {
    TInt err;
    // IP address specified here
    TInetAddr ServerAddr(KInetAddrMMRServer, KTcpPort);
    // Make a connection to the socket server
    err=ss.Connect();
    if(err)
    {

    CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
    informationNote->ExecuteLD(_L("Activation "));


    }
    User::LeaveIfError(err);


    pref.iRanking = 1;
    pref.iDirection = ECommDbConnectionDirectionOutgoing;
    pref.iDialogPref = ECommDbDialogPrefPrompt;


    bearer.iBearerSet = ECommDbBearerGPRS;
    bearer.iIapId = KUndefinedIAPid;
    pref.iBearer = bearer;

    iPref = pref;
    iNif.DisableTimers(ETrue);
    iNifTimerState = ETimerDisabled;
    if (!IsActive())
    {
    if (iPromptFlag)
    {

    iPromptFlag=EFalse;
    }
    else
    {
    iPref.iDialogPref = ECommDbDialogPrefDoNotPrompt;
    }
    iStatus = KRequestPending;
    iConnect->ConnectL(iPref, iStatus);
    }


    // Open a socket
    err=iSocket.Open(ss, KAfInet, KSockStream, KUndefinedProtocol);
    User::LeaveIfError(err);

    iSocket.Connect(ServerAddr, iStatus);

    SetActive();

    }

    ** I am getting the AppClose error.I will really appreciate it if some one could tell me how I can resolve this problem.


    Thank you(in Advance)

    Regards

    Rakesh Kumar Jaiswal

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    follow this link, and do what they say:

    http://www.newlc.com/article.php3?id_article=150

    then you'll get the error notes to show the real reason for the crash. Then you could check this:

    http://www.newlc.com/article.php3?id_article=117

    or check SDK documents if the error is documented.

    yucca

Posting Permissions

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