The goal of this document is to permit to the reader to be able to create an application that can be runned on multiple phones like on Nokia, Iphone, Blackberry, Androïd.
Currently, there is some multiple phone web based application framework and we decide to use PhoneGap.
We will start working on symbian. Following, it will be explained how to port the application on other OS (like android, iPhone, ...)
First, this instructions are only made to design web applications using PhoneGap on Nokia S60 5th Edition devices that run Web Runtime 1.1 (it will not work on other Nokia devices). You can check the list of compatible devices at Nokia website.
There is a PhoneGap wiki that explain how to setup, but as it is not so clear, following steps could be followed.
Now the devel environnement have been setup, here it's explain how to create an "Hello World" application.
In Aptana studio, go to File -> New -> Project. In the project wizard, select "New Web Runtime Widget". Select "Basic Widget Project" and give a name to your new project. (you can follow nokia explanations here)
Modify the index.html page to have this body and save :
On left pannel (file explorer), right click on your project, and chose Package Widget. You can see error message in the console. If every thing works fine, you should have "Packaging Successful" message at the end of the console. The package is in your project folder : YourProjectName.wgz.
There is severals way to deploy your application on a phone :
Once the application is on your phone, use the file explorator to find it, and open it. This starts the installation process, which follows the same sequence as installing an application. Once installed, the widget will be in your Application folder. So go to Applications, you will find the icon you add on your project at the begining, just clic on it to have the application launched. Enjoy !
There is an Eclipse plugin for android devel that make life easier, unfortunatly this plugin seems not compaptible with nokia plugin previously installed on aptana. To make things easier, use aptana for Nokia devel and Eclipse for android devel.
Some paket are required, on mandriva, you can install them like this :
urpmi java-1.6.0-sun-devel java-1.6.0-sun ant urpmi rubygems
install nokogiri :
sudo gem install nokogiri
evrything else is well explained at http://phonegap.pbworks.com/Getting-started-with-Android-PhoneGap-in-Eclipse
Everything is very well explained here : http://building-iphone-apps.labs.oreilly.com/ch07.html so I will not reinvent the wheel, just follow this explanations. This how to permit me to create Geoblabla application available on the apple store.