Skip to Navigation | Skip to Content



Update on PhoneGap port to Qt for Symbian | January 15th, 2010

After getting distracted for a while from my port of PhoneGap to Qt for Symbian, I’ve recently jumped back on it, tightening it up a bit and adding some APIs. We now have Geolocation, Vibration, Acceleration, & Orientation working.

Now we already have a Symbian port of PhoneGap working and available, which uses Nokia’s Web Runtime (WRT) technology (which is native to Symbian OS). So why PhoneGap on Qt for Symbian? Well I briefly mentioned some of the limitations faced by using WRT in a previous post; I will touch on those again and expand:

  • It is a closed-source proprietary technology, so we cannot actively fix bugs, and we cannot add features (and we want PhoneGap to be open!),
  • Performance: when I ported a PhoneGap application developed and tested on the Palm Pre to PhoneGap Symbian WRT, I found that its javascript animation was completely lost. It would get from state A to state B, but the animation in between was non-existent. I originally assumed my phone simply could not handle the animation … until I tried it using PhoneGap Qt for Symbian. It worked.
  • Memory: I tried using prototype.js in one of my PhoneGap WRT applications … it would crash immediately upon opening the application simply from the volume of javascript being loaded. Which reminds of when I first started developing with Web Runtime, and my applications would intermittently crash. Initially I would be chasing down the line of code which was crashing the environment … until eventually it became clear that we were simply running out of memory. Wasted a fair bit of time looking for non-existent bugs.

Now PhoneGap Symbian for Qt is still young and perhaps as it grows, it will face the performance & memory issues mentioned above. But for now things are running much smoother.

So far my testing of PhoneGap Qt for Symbian has been limited to my little PhoneGap API demo app, so more testing is definitely on my plate. The platform uses Qt Webkit, which appears to be very modern and so far has worked very nicely for me. Flick-scrolling is not native to the Qt Webview, so I may have to try implementing that as well. But to summarize, PhoneGap Qt for Symbian is now available, though not yet API-complete. Clone it, Get Started, and let me know if you have questions, comments, or suggestions. Or contributions!

Posted in Uncategorized | No Comments » | Add to Delicious | Digg It

PhoneGap Palm now available | December 7th, 2009

palm

I just pushed my latest work on PhoneGap Palm to my github repo, and it should be pulled over to the main phonegap repo shortly.
PhoneGap API’s available to Palm devices include geolocation, accelerometer, notification, orientation, sms, telephony, network, file (read only), and a limited selection of device properties (see the PhoneGap Mobile Spec running on the Palm Emulator to the left).

Unfortunately the contacts API won’t be available for a while, due to the fact that the Mojo API limits data access (including contacts data) to that which was created by the app in context (see this discussion). Hopefully this will change.

For those who don’t know, Palm’s webOs is completely based on web technologies. We’ve got a couple of Palm Pre’s here for testing, and they’re sick. And the edit/deploy/test cycle is very smooth. You can test on device and write to a debug console which you can monitor on your SDK console.

Like we did for Symbian WRT, we simply had to write a javascript shim to map the Mojo API (webOs’ mobile js API) to the PhoneGap API. I also had to do a bit of messing around with the stage/scene system which they use for changing application views. But its ready for use with the device APIs listed above.

I’ll be continuing to work on this and expand the API, and I also hope to get some time to continue my work on PhoneGap Symbian/Qt.

Posted in PhoneGap | 10 Comments » | Add to Delicious | Digg It

PhoneGap Symbian: Qt 4.6 for Symbian officially released | December 1st, 2009

So after starting off with Qt 4.6 tower, then upgrading to colossus ), then a beta release candidate, the official Qt 4.6 RAMBO release is here! Well its not called Rambo but it should be. Its got solid Qt Support, though I haven’t upgraded my PhoneGap Symbian fork yet, but will shortly. I was hoping we might have the Qt Mobility packages built into the release but I guess there’s still some work to be done on them. For now I’ll have to continue to include the different libraries via source code, which isn’t a big deal.

Brian fowarded me a twitter post of someone who was confused how Qt gets installed on the device … its a sis installer file, just like most other tools and apps (save WRT Widgets). Sis installers can encapsulate other sis installers, so I was thinking Qt could be packaged with PhoneGap apps for deployment. Maybe if developers really start making apps using PhoneGap Symbian with Qt, Symbian will ship with Qt …

There may be some confusion as to how PhoneGap Symbian Qt will be built and deployed, so here’s a bit of a step by step of what’s required (detailed version):

1. Install the S60 (Symbian) SDK, Qt 4.6 for Symbian (SDK first, Qt patches it), and their various associated prerequisites.

2. Download the PhoneGap Symbian source code, which which will include the required Qt Mobility APIs.

3. Build your webapp using html/js/css and the symbian phonegap.js, and place it in the phonegap/symbian.qt/framework/www/ folder.

4. Build and in the emulator, if desired.

5. Qt 4.6 includes qt.sis. This installs qt to your symbian phone. Do it.

6. Build your application, which will give you your application.sis (self-signed). This will be your distributable. Voila.

Outstanding issues:

- cannot send xhr’s from our local resources (priority)

- many API’s still to be implemented

- Symbian Signing

Feel free to post comments if you have any questions.

Posted in Uncategorized | 1 Comment » | Add to Delicious | Digg It

PhoneGap for Symbian: Qt | November 18th, 2009

During the initial stages of working on PhoneGap for Symbian using Web Runtime, some limitations were brought to light due to the fact that Nokia’s WRT is closed source: we are limited to the device functionality and platform support which Nokia has exposed. Nonetheless its a great technology and porting PhoneGap to WRT was a relatively quick win (taking in to account my having to re-learn javascript after 1 year of flailing abroad).

But over the last few weeks, while maintaining the latter, I’ve been researching/experimenting (don’t even want to go far as say developing, as very little has been implemented) with Qt for Symbian. The crew at Nokia just released the Qt 4.6 release candidate on Nov 17th, and it includes a port of Webkit to Qt (QtWebkit), along with support for the Symbian/S60 platform, which is just the combination phonegap needs.

note my amazing javascript console, firebug is crap

note my amazing javascript console, firebug is crap

So anyways I’ve got a PhoneGap Symbian Qt build (piggybacking off of the webkit demos included with Qt) which can open a local resource in a webview, and expose Qt Objects (and thus device functinoality) to javascript (via webframe->addtojavascriptwindowobject). I’ve implemented the most important API first, rather than the easiest: vibration. Ok it was actually the easiest.

Anyways there’s other problems to tackle before implementation of more PhoneGap APIs:

  • XHRs seem to be getting blocked. I’m thinking its blocking what it considers a cross-domain XHR: a local html file to a remote server. I believe the support of this depends on the Webkit implementation(?)
  • I can’t remember what else.

So if this looks interesting, help out the mobile developer community. Contribute. Its open source. Check out my very basic Getting Started doc, and get the code from my PhoneGap repo on Github (Symbian Qt branch). The .sis installer file is in there as well, so you could also just put it on your device to see a PhoneGap app that vibrates and thats about it. Really useful. I think you might need to install Qt libraries to your phone since I haven’t packaged them in the app yet.

Posted in Uncategorized | 3 Comments » | Add to Delicious | Digg It

twatter | November 4th, 2009

my refusal to join twitter was reaffirmed when Andre sent me this

Posted in Uncategorized | 1 Comment » | Add to Delicious | Digg It

Tcktcktck (made w/ phonegap) available in ovi store | November 4th, 2009

The Tcktcktck mobile application is now published and available in Nokia’s Ovi Store to a selection of several S60 5th Edition devices. I believe it was recently approved in Blackberry’s app world, so once the iTunes Store sorts itself out, we’ll have a bit of a success story using PhoneGap for cross-platform mobdev!

PS the canucks are winning with half their forward lineup, plus luongo, injured. Bieksa even played forward last night haha! they’re makin a run.

Posted in Uncategorized | No Comments » | Add to Delicious | Digg It

PhoneGap for Symbian.WRT follow-up | November 1st, 2009

To follow up with my last post, the WRT javascripts for  phonegap symbian are now up on my github account: http://github.com/wildabeast/phonegap

Will get sintaxi to pull soon. But feel free to play with it for now. Nokia’s WRT (on Symbian OS) is real easy to use, especially with the PG libraries in there.

Recently added libraries include: camera, sms, orientation, storage, and acceleration.

Posted in Uncategorized | No Comments » | Add to Delicious | Digg It

PhoneGap for Symbian.WRT Update | October 29th, 2009

Nokia 5800 XpressMusic

After spending some time on the Tcktcktck mobile app (built using PhoneGap, pictured), I’m back on PhoneGap. The PhoneGap port formerly known as PhoneGap Nokia should and will be renamed to PhoneGap Symbian (WRT), since Nokia’s Web Runtime is part of newer versions of Symbian OS, which is not limited to Nokia devices (Sony Ericsson too, at least). I recently dropped the Tcktcktck mobile app, built with PhoneGap Symbian.WRT, onto a SE Satio, and she worked like a charm, minus a few UI issues stemming from resolution differences.

Now it should be noted that Nokia WRT (with Platform Services, critical) is only on S60 3rd FP2 and S60 5th Edition devices, so currently PhoneGap for Symbian does not span the entire set of Symbian devices. However I’m doing some research on the side as well on building PhoneGap using the Qt 4.6 beta release, which includes QtWebkit and Symbian OS support.

robbie lou is out for at least a week and i’m crying inside.

Posted in Uncategorized | No Comments » | Add to Delicious | Digg It

Phonegap Nokia | September 16th, 2009

I just pushed my work on porting phonegap for Nokia WRT (Web Runtime) on the s60 platform to my github repo, and will get brock to drop it into the main phonegap repo over very soon, but I just wanted to get it out that phonegap for nokia is on its way! Nokia WRT’s exposure of device functionality has made it relatively easy to implement phonegap for geolocation, notification, and contact support in nokia wrt widgets. There are some limitations in the WRT environment; one significant one at the moment is that WRT’s device API and menu object functionality are exposed only to one main html file. Hopefully can figure out a way around this to stay in line with the phongap ideology. Stay tuned for phonegap Nokia.

Posted in Uncategorized | 2 Comments » | Add to Delicious | Digg It

Hack / Drink Beer Day | February 6th, 2008

I completely blew it last hack day … I seem to recall sitting in my bed spitting phlegm into a cup. But I’m ready to drink this Saturday. Oh I might do some hacking too.

I recently set up an old tower as my media server at home, and its all hooked up to my tv through the tower’s tv out. But to play stuff I have to use vnc to connect remotely, and its just not very usable. So I wondered if there was a desktop remote for controlling a media player on one PC from another. PC is the key word, since I already found one for Mac. There might even be a free one already out there for PC too, but I’M DOING IT ANYWAYS. I get to use my blossoming Ajax skills to make something I can use at home.

So VLC has an http interface, which simplifies things immensely. Its a decent media player too, so thats my server. For the client, I was initially thinking about making a Yahoo Widget, but then decided to make an AIR app since I haven’t messed with AIR much yet, and feel like a retard when James or one of our other experts is discussing it. Maybe if I come out with something half decent, I’ll port it over to a Yahoo Widget for the masses.

So hopefullly I’ll have something to use, and share, after this weekend. I’ll post the results after my hangover subsides.

Posted in Uncategorized | 2 Comments » | Add to Delicious | Digg It


Search Posts

Archives

Categories

  • Blogroll