×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    292

    Problem in Selecting a Default APN without showing POP UP!

    Hi Guys :

    I have used the following code it wowrks on some phone like 6220 classic,E71 etc. but it always shows pop up on n79,n97 mini etc.

    code :

    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);



    Could anybody please let me know does symbian provide any standard way to select the APN without showing popup .


    Thanks
    Manish

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Problem in Selecting a Default APN without showing POP UP!

    i had implemented my own way for that, i am not sure whether that will suite you or not.

    I just saved the id of the access point in a file for that application and before establishing a connection i used to check for that id , if that exists i use to connect the user to the internet using that Id.

    And if the Id is not there i used to ask for the access point, it worked for me in my N97, E72 and N95.

    Regards,

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    292

    Re: Problem in Selecting a Default APN without showing POP UP!

    hey how do you get that id ?

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Problem in Selecting a Default APN without showing POP UP!

    try following this http://wiki.forum.nokia.com/index.ph...rom_the_device article you will get some idea.

    Regards,

Similar Threads

  1. Replies: 9
    Last Post: 2010-02-16, 03:59
  2. Selecting APN name.
    By devabhsa in forum Mobile Java Networking & Messaging & Security
    Replies: 15
    Last Post: 2006-11-15, 11:31
  3. Making APN as default programmatically?
    By kgvb in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-06, 14:13
  4. Replies: 2
    Last Post: 2004-11-16, 08:29
  5. Setting default APN for another app
    By soniatm in forum Symbian
    Replies: 0
    Last Post: 2003-09-25, 09:54

Posting Permissions

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