
Originally Posted by
whoisstan
How do I open a browser in a N95 with a URL and make page show right away. I refuse to accept that this is not possible, can't be

How about utilizing the MIME type content hander to open a local document, which immediately redirects the page to whatever address you want? Like this:
Code:
import e32
import appuifw
url = "http://www.google.com"
redirectfilepath = r"D:\redirect.html" # Temporary file on RAMDisk
redirectpage = '''
<HTML>
<HEAD><TITLE>Opening page...</TITLE></HEAD>
<BODY><SCRIPT>document.location="%s"</SCRIPT></BODY>
</HTML>
''' % url
# Write a temporary redirect file.
redirectfile = open(redirectfilepath, "w")
redirectfile.write(redirectpage)
redirectfile.close()
# Launch redirect file using an application registered for HTML (the browser).
mimehandler = appuifw.Content_handler()
mimehandler.open(redirectfilepath)
# Browser never returns.
The downside of this approach is that mimehandler.open() opens the browser in the same thread on which Python runs, i.e. Python is stopped at that point. The browser never returns to the Python interpreter, at least on an N95. mimehandler.open_standalone() would correct this, but it does not work on my N95 for some reason.