Hi All,
I have to get the iapId of default access point set for network connection. I dont want to create popup for selecting access point in my application,
I want to fetch access point for network connection through my application. For the same i am using following approach:
CCommsDbConnectionPrefTableView* commsDbTableView = NULL;//For making view on a gprs table in the database
CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;
//open socket server and start the connection
User::LeaveIfError(iSocketServ.Connect());
TRAP( err,iConnection.Open(iSocketServ) );
TRAP(err,iSession.OpenL());
commsDbTableView = commDB->OpenConnectionPrefTableInRankOrderLC(ECommDbConnectionDirectionUnknown);
TRAP(err, commsDbTableView->ReadConnectionPreferenceL(pref));
connectionId = pref.iBearer.iIapId;
CleanupStack::PopAndDestroy(commsDbTableView);//Pushed at time of creation.
But I am always getting same connectionId irrespective of whichever I had selected as default access point for connection(For setting default access point for connection I am using path: web->options->Settings->Access point->User defined-> now select any access point). Please provide any pointers regarding this problem.
Thanks in advance.



