Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:How can I create an Internet connection without prompting a dialog?

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 2nd Edition
S60 2nd Edition (initial release)
Created: User:Technical writer 2 (05 Aug 2003)
Last edited: hamishwillee (18 Sep 2012)


How can I create an Internet connection without prompting a dialog?


The following code demonstrates how to create a connection without prompting a dialog. You'll need to know the IAP ID for the access point that will be used.

RSocketServ socketServ;
RConnection connection;
TCommDbConnPref pref;
pref.SetIapId(4); // IAP ID for connection to be used
pref.SetDialogPreference( ECommDbDialogPrefDoNotPrompt );
pref.SetDirection( ECommDbConnectionDirectionOutgoing );
This page was last modified on 18 September 2012, at 05:33.
26 page views in the last 30 days.