×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    RConnection with "T-MOBILE INTERNET"...preselected

    Hi,


    everytime i run a socket connection my cellphone prompts a selection box with possible connection types "choose connection..."
    I want to do this automatically by code without prompting but i don't know how to start.



    Greetz
    Franky

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: RConnection with "T-MOBILE INTERNET"...preselected

    what you have to do is read all the list of IAP ID and store the one selected by the user in your database or file. Then connecting for the second time use the IAP ID directly, if that does not work then only ask user to select it again.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: RConnection with "T-MOBILE INTERNET"...preselected

    Code:
     // Create an RConnection using a defined IAP
        RSocketServ server;
        RConnection connection;
        TInt error;
        error = server.Connect(KESockDefaultMessageSlots);
        error = connection.Open(server, KConnectionTypeDefault);
        TCommDbConnPref prefs;
        prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
        prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
        prefs.SetIapId(Iap); //Where IAP is the AP stored from the DB/member variable
        error = connection.Start(prefs);
    
        ...
    
        // Close connection / server once you are done
        // connection.Close();
        // server.Close();
    Cheers,
    Mayank

Similar Threads

  1. [moved] TWO THINGS YOU PROBABLY NEVER KNEW YOUR MOBILE PHONE COULD DO
    By shawnonmobile in forum General Development Questions
    Replies: 4
    Last Post: 2008-10-30, 16:16
  2. Searching for Software Developers for Android platform
    By tle40 in forum News and Announcements
    Replies: 1
    Last Post: 2008-09-30, 23:32
  3. Replies: 0
    Last Post: 2007-09-14, 12:07
  4. Nokia Mobile VPN Client
    By marcyl in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-12-01, 14:47
  5. How develop Java games on mobile phones?
    By ericzutter in forum Mobile Java General
    Replies: 4
    Last Post: 2003-11-20, 23:14

Posting Permissions

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