View Single Post
Posts: 105 | Thanked: 99 times | Joined on Feb 2011 @ India
#1
Since both opera widgets and "QT Web Runtime" uses open web technologies to make native applications, I was wondering if its possible to make opera widgets run natively on N900. It turned out to be surprisingly easy.

"QT Web Runtime" needs to be installed from extra-devel if you dont have it installed already.

As the experiment, I tried to run Pipe Mania.

Heres the steps I did to "port" pipe mania:
1) Download pipe mania.

2) It will have .wgt extension which is just a zipped archive renamed to .wgt. Extract the contents.

3) The extracted folder will have all the html, css, js files. The config.xml needs to be edited.

This was the original file:
Code:
<?xml version='1.0' encoding='UTF-8'?>
<widget height="688" version="1.0" viewmodes="floating" width="467">
  <name>Pipe mania</name>
  <description>Old school Pipe Mania game reactivated!</description>
  <icon>icons/icon-128.png</icon>
  <icon>icons/icon-64.png</icon>
  <icon>icons/icon-32.png</icon>
  <icon>icons/icon-16.png</icon>
  <width>413</width>
  <height>605</height>
  <author>
    <name>Opera widgets</name>
    <organization />
    <email />
    <link />
  </author>
  <widgetname>Pipe Mania</widgetname>
</widget>
I modified to this:
Code:
<?xml version='1.0' encoding='utf-8'?>
<widget xmlns="http://www.w3.org/ns/widgets" version="1.0" viewmodes="maximized">
  <name>Pipe mania</name>
  <description>Old school Pipe Mania game reactivated!</description>
  <content src="index.html" />
  <icon src="icons/icon-32.png" />
  <width>413</width>
  <height>605</height>
</widget>
4) Select all files & folders including the config.xml and compress to a zip archive. Do not archive the parent folder, it wont work. Change the extension from .zip to .wgt.

5) Copy the file to n900 and run using file manager. The application will be installed and a shortcut will be created in the application menu. Play the game!

------
Direct link to the app file
Attached Images
  

Last edited by niloy; 2011-04-22 at 17:47.
 

The Following 37 Users Say Thank You to niloy For This Useful Post: