01-25-2013 05:33 AM
I am using the MyBrowserFieldListener class as i found in a sample example to capture browserfiedl navigation.There is one method
public void documentCreated(BrowserField browserField, ScriptEngine scriptEngine, Document document) throws Exception
{
if ((browserField != null) && (document != null))
{
String title = browserField.getDocumentTitle();
String url = document.getBaseURI();
System.out.println("[" + this.getClass().getName() + "] Document '" + title + "' created for URL " + url);
}
super.documentCreated(browserField, scriptEngine, document);
}When i execute from simulator "
document.getBaseURI();
gives me the correct redirected name URI,but when debugging from actual device,it gives me the URI of the earlier page.Can anyone sugegst what is the prob?