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:
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!
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!