Symbian-Developers

The Official Developers Section => Symbian Software Development Discussions => The Developers Section => Symbian Web Runtime => Topic started by: Allstar12345 on July 11, 2012, 03:16:54 am

Title: An introduction to Symbian Webruntime
Post by: Allstar12345 on July 11, 2012, 03:16:54 am
An introduction to Symbian Webruntime


Hi guys,
now you may have no idea what runtime or WRT is but im gonna explain with some simple starting code as some examples, you ever installed or seen a .wgz app ?

That is a WRT widget installer but its unlike a .sis file which needs special signing because WRT needs no security signing of any kind because its simply a .zip file just go to a widget installer and re-name it to a .wgz .


Basic, load webpage internally on widget launch

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WIDGET TITLE</title>
<meta http-equiv="REFRESH" content="0;url=URL WHICH YOU WANT TO LOAD">
</head>
<BODY>


loading circle while waiting for internet connection to establish

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<img src="ANIMATION FILE NAME" alt="loader" height="HEIGHT" width=""WIDTH />
<html>
<head>
<title>WIDGET TITLE</title>
<meta http-equiv="REFRESH" content="0;url=URL WHICH YOU WANT TO LOAD">
</head>
<BODY>



Info.plist file explained HERE (http://sdf.allstarsoftware.co.uk/symbian-web-runtime/web-runtime-info-plist-explained/new/#new)

Title: Re: An introduction to Symbian Webruntime
Post by: matthew on November 20, 2013, 01:41:54 pm
What? WRT is just local html?
If this is correct, wouldn't this be the ideal place to start instead of qml? Or is qml even easier?
Title: Re: An introduction to Symbian Webruntime
Post by: Allstar12345 on November 20, 2013, 02:39:14 pm
What? WRT is just local html?
If this is correct, wouldn't this be the ideal place to start instead of qml? Or is qml even easier?

As a base yes, an offline webpage.

But no, it's not the ideal place.
WRT is broken badly, lots of API's are buggy, it's terribly slow (nokia webkit) and has no file access.
Title: Re: An introduction to Symbian Webruntime
Post by: matthew on November 20, 2013, 02:44:35 pm
Ok. Back to reading :D
Thanks :)
Title: Re: An introduction to Symbian Webruntime
Post by: huellif on November 21, 2013, 11:51:07 pm
Go to QtQuick first, create a few apps via UiDesigner.
After you learned how it works have a look to the .qml files.
After you understood them extend your functionality via calling Qt functions from classes.

If you mastered this it's time to integrate some native Symbian C++ code
Title: Re: An introduction to Symbian Webruntime
Post by: matthew on November 22, 2013, 10:29:34 pm
 :D
Thanks, both of you. i am still reading about Qt before i give it a go ;)