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
//open socket server and start the connection
TRAP( err,iConnection.Open(iSocketServ) );
commsDbTableView = commDB->OpenConnectionPrefTableInRankOrderLC(ECommDbConnectionDirectionUnknown);
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.