PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Symbian -> IAP selection dialog problem

Hi everyone,

I’m developing an application for Symbian OS and need to force IAP (Internet Access Point) selection dialog to be shown.
Here is the source code I use for that:

Code:

RGenericAgent netAgent;
if (netAgent.Open() == KErrNone)
{
CleanupClosePushL(netAgent);
CCommsDatabase* db=CCommsDatabase::NewL();
CleanupStack::PushL(db);

CCommsDbConnectionPrefTableView* mainView = db->OpenConnectionPrefTableViewOnRankLC(ECommDbConnectionDirectionOutgoing,1);
mainView->GotoFirstRecord();
mainView->UpdateDialogPrefL(ECommDbDialogPrefPrompt);

TRequestStatus status;
netAgent.StartOutgoing(status);

User::WaitForRequest(status);
}


I tried to do this in CMyApplication::ConstructL() but GapiDraw does something and “User::WaitForRequest(status)” terminates immediately.
Is there any way do this before the GapiDraw starts?

Thanx in advance!
Do you use the GapiApplication framework? Why not simply open the internet connection before you call Run()?
Hi Johan,
Yes, I use GapiApplication framework.

When I try to open internet connection before Run() , there is a connection dialog but I can only go Up/Down in selection list and can’t do anything else except to turn off phone.