Hi forum nokia developers,
I m facing the same problem here.
BrCtlInterface displays all web pages on S60 3rd devices properly,
However on S60 5th Edition it displays only the pages that are of size less than that of the device screen.for ex. google.com or m.facebook.com or m.orkut.com.
trying to display any large pages for ex.timesofindia.com raises Kern Exec-3.
I dont know wether it is a bug??
But the sample application on forum nokia with same BrCtlInterface runs properly on 5Th Edition devices also.
I am stuck here with the issue and i hope to get answer from forum nokia developers asap.
Thanx
Here is the code i used to create the browser interface.
Code:
void CBrCtlSampleAppContainer::CreateBrowser(){
iCommandBase = TBrCtlDefs::ECommandIdBase;
// Create the Observers
iBrCtlSampleAppSpecialLoadObserver = CBrCtlSampleAppSpecialLoadObserver::NewL();
iBrCtlSampleAppLayoutObserver = CBrCtlSampleAppLayoutObserver::NewL(this);
iBrCtlSampleAppSoftkeysObserver = CBrCtlSampleAppSoftkeysObserver::NewL(this);
iBrCtlSampleAppLoadEventObserver = CBrCtlSampleAppLoadEventObserver::NewL(this);
iBrCtlSampleAppLinkResolver = CBrCtlSampleAppLinkResolver::NewL();
iBrCtlSampleAppStateChangeObserver = CBrCtlSampleAppStateChangeObserver::NewL(this);
iBrCtlSampleAppDialogsProvider = CBrCtlSampleAppDialogsProvider::NewL(this);
// Initialize memeber variables
iBrCtlCapabilities = TBrCtlDefs::ECapabilityDisplayScrollBar |
TBrCtlDefs::ECapabilityLoadHttpFw |
TBrCtlDefs::ECapabilityClientResolveEmbeddedURL;
TRect brCtlRect(TPoint(0, 0), Size());
iBrCtlInterface = CreateBrowserControlL( this,
brCtlRect,
iBrCtlCapabilities,
iCommandBase,
iBrCtlSampleAppSoftkeysObserver,
iBrCtlSampleAppLinkResolver,
iBrCtlSampleAppSpecialLoadObserver,
iBrCtlSampleAppLayoutObserver,
iBrCtlSampleAppDialogsProvider);
// These observers can be added and removed dynamically
iBrCtlInterface->AddLoadEventObserverL(iBrCtlSampleAppLoadEventObserver);
iBrCtlInterface->AddStateChangeObserverL(iBrCtlSampleAppStateChangeObserver);
//iBrCtlInterface->SetBrowserSettingL(TBrCtlDefs::ESettingsSmallScreen,0);
iBrCtlInterface->SetBrowserSettingL(TBrCtlDefs::ESettingsFontSize,TBrCtlDefs::EFontSizeLevelAllSmall);
//This will be displaye Properly
//LoadPage(_L("http://www.google.com"));
//This would raise Kern exec-3
LoadPage(_L("http://www.timesofindia.com"));
}