Ma première application sur Palm PreTutoriel
Publié par Guy Gnakouri
Dans ce tuto je vais développer ma premier application sur le systeme WebOS .
Pour créer mon projet je fais menu-> fichier->NewProjet->Mojo application. Sinon je peut également utiliser le wizard avec le bouton dans la barre d'outils.
Dans la fenêtre qui s'ouvre, on renseigne les différentes informations sur l'application, le titre de l'application, le vendor,l'id identifiant unique et le numéro de version
On obtient après validation de cette étape arborescence suivante :
Exemple de fichier appinfo.json { "id": "com.mycompany.premierprojet", "version": "1.0.0", "vendor": "My Company", "type": "web", "main": "index.html", "title": "PremierProjet", "icon": "icon.png" } Dans le fichier appinfo.json, la balise main a pour valeur index.html, ce qui veut dire que lefichier principal de notre application est index.html. Dans ce fichier index.html, qui sera notre première interface, le language utilisé est du html, pour moi qui bosse beaucoup sur des interfaces web, l'apprentissage des interfaces webos sera, je pense rapide. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>PremierProjet</title> <script src="/usr/palm/frameworks/mojo/mojo.js" type="text/javascript" x-mojo-version="1" /> <!-- application stylesheet should come in after the one loaded by the framework --> <link href="/stylesheets/premierprojet.css" media="screen" rel="stylesheet" type="text/css" /> </head> <body> <h2>Ma Premier application webos.</h2> <p> En HTML. </p> </body> </html> L'écriture de cette première interface en HTML, on retrouve les mêmes balises (html, head, body)
Nouveau commentaire :
Actualités | Applications | Divers | Matériel | Test | Tutoriel | WebOS | Edito | DevCast |
webOSfrance : AIOSettings : Les préférences centralisées pour webOS http://t.co/GIDrErvd #webOS #homebrew #touchpad
Vendredi 18 Mai - 23:05
webOSfrance : AIOSettings : Les préférences centralisées pour webOS http://t.co/GIDrErvd
Vendredi 18 Mai - 23:04
webOSfrance : webOS App Builder : Créer votre application #webOS facilement sans connaissance : http://t.co/rWDBiqbH sur #HP #touchpad
Mardi 15 Mai - 23:46
webOSfrance : Paramètres APN pour le réseau #Free Mobile avec #hp #webOS http://t.co/AayM5tBt
Lundi 14 Mai - 09:30
webOSfrance : MIse à jour #webOS 3.0.6 en vue http://t.co/cUS1RmrY #hp #touchpad
Dimanche 13 Mai - 12:35
webOSfrance : HP va refaire des tablettes mais pas sous webOS http://t.co/rrMPItLf
Samedi 12 Mai - 12:34
|
|||||||
|
webOSfrance n'a aucun lien avec la société Hewlett Packard. Siret: 522 602 721 00014 - Dispensé d'immatriculation en application de l'article L 123-1-1 du code de commerce |
||||||||
AccessoWeb

Home




