Hi to all.
I m developing one application where i need to connect GPRS or wifi.
I m using HTTP example of SDK. where i m able to connect GPRS.
What i want :
If WiFi is present then my application should automatically detect that connection and start WiFi and if WiFi is not present then it should connect to the GPRS. and it should not prompt me to choose to select any access point.
How can i do it. I m getting All access points through below code but i could not decide that which access point of wifi or which are of GPRS.
// open the IAP communications database
CCommsDatabase* commDB = CCommsDatabase::NewL(EDatabaseTypeIAP);
// Open the IAP table
CCommsDbTableView* view = commDB->OpenTableLC(TPtrC(IAP));
// Point to the first entry
if (view->GotoFirstRecord() == KErrNone)
// Store name and ID to where you want to
} while (err = view->GotoNextRecord(), err == KErrNone);
CleanupStack::PopAndDestroy(); // view
// pop and destroy the database object
i have also visited one post to detect WIFI is ON or OFF.
but i m not reaching at the Concrete solution.
If any buddy can show me right path.