• April 28, 2024, 04:39:45 am

Author Topic: An introduction to Symbian Webruntime  (Read 3766 times)

0 Members and 1 Guest are viewing this topic.

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
An introduction to Symbian Webruntime
« 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

« Last Edit: September 03, 2012, 06:43:43 pm by Allstar12345 »

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: An introduction to Symbian Webruntime
« Reply #1 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?

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: An introduction to Symbian Webruntime
« Reply #2 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.

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: An introduction to Symbian Webruntime
« Reply #3 on: November 20, 2013, 02:44:35 pm »
Ok. Back to reading :D
Thanks :)

Offline huellif

  • Developer
  • Christmas Santa
  • ****
  • Posts: 402
  • Reputation: 212
Re: An introduction to Symbian Webruntime
« Reply #4 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

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: An introduction to Symbian Webruntime
« Reply #5 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 ;)