Hi,
I wonder if there's a way to change the browser's default access point progrematically.
Note that I'm not looking for a way to launch a browser instance using a specific access point nor to use an embedded browser control.
Thanks,
Nadav
Hi,
I wonder if there's a way to change the browser's default access point progrematically.
Note that I'm not looking for a way to launch a browser instance using a specific access point nor to use an embedded browser control.
Thanks,
Nadav
Hi,
Take a look at browseruisdkcrkeys.h from S60 3.2 SDK. There are KBrowserAccessPointSelectionMode and KBrowserDefaultAccessPoint cenrep keys that you can use to change default access point of browser.
It works perfectly in 3rd Ed FP1 (N95), but with 3rd Ed (E65) only the KBrowserAccessPointSelectionMode seem to have an effect.
In 3rd Ed it is possible to set and get KBrowserDefaultAccessPoint, but it doesn't seem to have any effect.
Is there a different way for 3rd Ed?
My code:
Thanks,Code:CRepository * rep = CRepository::NewL( KCRUidBrowser ); CleanupStack::PushL( rep ); User::LeaveIfError( rep->Set( KBrowserAccessPointSelectionMode, aMode ) ); if ( aMode == 0 /*specific*/ ) User::LeaveIfError( rep->Set( KBrowserDefaultAccessPoint, aIap ) ); CleanupStack::PopAndDestroy( rep );
Nadav
Hey there.
how do I change the browser settings programmatically on S60 3rd ed FP2 devices.
Any help is greatly appreciable!!!
Hi,
You can change default access point of device browser with below code
CRepository* cenrep = CRepository::NewLC(KCRUidBrowser);
cenrep->Set(KBrowserAccessPointSelectionMode, 2); // 2 stands for EBrowserCenRepApSelModeDestination
cenrep->Set(KBrowserNGDefaultSnapId, 1);
This will set internet as default access point.
To again set the access point as "Always ask",
cenrep->Set(KBrowserAccessPointSelectionMode, 1); // 1 stands for EBrowserCenRepApSelModeAlwaysAsk
This requires WriteDeviceData capability.
Regards,
Ashish