Creating a launcher for a web application in Symbian Web Runtime
This code snippet shows how to make a web app into a "mobile app", using Symbian Web Runtime the launch the web app in the browser.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
// Ensure that the softkeys are shown even though by default they
// should be
// Launch the web application
location.href = "http://url.to.your.webapp";
The web application is launched from WRT.
This code snippet is part of the stub concept, which means that it has been patched on top of a template application in order to be more useful for developers. The version of the WRT stub application used as a template in this snippet is v1.2.
- The patched, executable application that can be used to test the features described in this snippet is available for download at Media:wrt launcher.zip.
- You can view all the changes that are required to implement the above-mentioned features. The changes are provided in unified diff and colour-coded diff (HTML) formats in Media:wrt launcher.diff.zip.
- For general information on applying the patch, see Using Diffs.
- For unpatched stub applications, see Example app stubs with logging framework.