issue104:c_c
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue104:c_c [2016/01/15 19:45] – d52fr | issue104:c_c [2016/01/16 14:44] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**As promised last month, I’ll be covering some more ubuntu phone programming. While preparing for this article, I have looked at most of the tutorials from Ubuntu itself. They are well written, and definitely a good spot to start. I will focus on more general approaches - what app type to use for what purpose, as well as a small example of a web app.** | **As promised last month, I’ll be covering some more ubuntu phone programming. While preparing for this article, I have looked at most of the tutorials from Ubuntu itself. They are well written, and definitely a good spot to start. I will focus on more general approaches - what app type to use for what purpose, as well as a small example of a web app.** | ||
- | Comme promis le mois dernier, je vais approfondir le sujet de la programmation des téléphones sous Ubuntu. Pour préparer cet article, j' | + | Comme promis le mois dernier, je vais approfondir le sujet de la programmation des téléphones sous Ubuntu. Pour préparer cet article, j'ai consulté |
**App Types | **App Types | ||
Ligne 10: | Ligne 10: | ||
• Scopes - These can be written in various languages, and combined with APIs.** | • Scopes - These can be written in various languages, and combined with APIs.** | ||
- | Les types d'application | + | Les types d'applications |
- | Application HTML5 : c'est une application HTML à part entière. Si vous êtes développeur | + | • Application HTML5 : c'est une application HTML à part entière. Si vous êtes développeur |
- | Webapp : c'est le type d'applications | + | • Webapp : c'est le type d'application |
- | QML : pour une application native sur Ubuntu (écrite en QML, qui est le méta-langage de Qt). | + | • QML : pour une application native sur Ubuntu (écrite en QML, qui est le méta-langage de Qt). |
- | Scopes : ils peuvent être écrite | + | • Scopes : ils peuvent être écrits |
Ligne 21: | Ligne 21: | ||
As an example, I’ll briefly cover how to create a webapp for opening the Full Circle Magazine site. | As an example, I’ll briefly cover how to create a webapp for opening the Full Circle Magazine site. | ||
+ | |||
• Create a new Webapp project | • Create a new Webapp project | ||
+ | |||
• Open < | • Open < | ||
- | • Edit the exec line to read: | + | |
- | Exec=webapp-container --enable-back-forward --store-session-cookies --webappUrlPatterns=https?:// | + | • Edit the exec line to read: |
• Replace < | • Replace < | ||
- | En guise d' | + | Webapp |
- | créez un nouveau projet Webapp ; | + | |
- | ouvrez < | + | |
- | éditez la ligne exec ainsi : | + | |
- | exec=webapp-container --enable-back-forward --store-session-cookies --webappUrlPatterns=https?:// | + | |
- | remplacez < | + | |
+ | En guise d' | ||
+ | • créez un nouveau projet Webapp ; | ||
+ | • ouvrez < | ||
+ | • éditez la ligne exec ainsi : exec=webapp-container --enable-back-forward --store-session-cookies --webappUrlPatterns=https?:< | ||
+ | • remplacez < | ||
- | **The important step is the third one. Here you indicate the allowed URL patterns - in this case we allow any https or http (https?://) connection to fullcirclemagazine.org, | + | |
+ | **The important step is the third one. Here you indicate the allowed URL patterns - in this case we allow any https or http (< | ||
As you can see - creating a basic webapp is extremely simple. If you want to connect an account, you can either log in via the web interface (as normal) by setting the login page to the default URL (last URL in the Exec line). If you want to use the OnlineAccounts API, you’ll apparently need to use a fully-fledged HTML5 app. If the site you’re connecting to also offers an API, using an HTML5 app (and asking for credentials in settings), you should be able to connect via API as well. See the examples on the Ubuntu page for more details.** | As you can see - creating a basic webapp is extremely simple. If you want to connect an account, you can either log in via the web interface (as normal) by setting the login page to the default URL (last URL in the Exec line). If you want to use the OnlineAccounts API, you’ll apparently need to use a fully-fledged HTML5 app. If the site you’re connecting to also offers an API, using an HTML5 app (and asking for credentials in settings), you should be able to connect via API as well. See the examples on the Ubuntu page for more details.** | ||
- | L' | + | L' |
- | Comme vous pouvez le voir, créer une webapp basique est extrêmement simple. Si vous voulez vous connecter à un compte, vous pouvez le faire via l' | + | Comme vous pouvez le voir, créer une webapp basique est extrêmement simple. Si vous voulez vous connecter à un compte, vous pouvez le faire via l' |
**QML App | **QML App | ||
Ligne 51: | Ligne 54: | ||
Applications QML | Applications QML | ||
- | J' | + | J' |
**Questions for readers | **Questions for readers | ||
Ligne 63: | Ligne 66: | ||
Questions aux lecteurs | Questions aux lecteurs | ||
- | Y a-t-il des applications pour téléphones Ubuntu sans lesquels | + | Y a-t-il des applications pour téléphones Ubuntu sans lesquelles |
De manière générale, y a-t-il un sujet que vous souhaiteriez voir développé en 2016 ? Toutes vos réponses peuvent être envoyées à lswest34+fcm@gmail.com. | De manière générale, y a-t-il un sujet que vous souhaiteriez voir développé en 2016 ? Toutes vos réponses peuvent être envoyées à lswest34+fcm@gmail.com. | ||
- | Je vous souhaite à tous une bonne année et je vous remercie de lire C&C ! | + | Je vous souhaite à tous une bonne année et je vous remercie |
**Further Reading | **Further Reading | ||
Ligne 77: | Ligne 80: | ||
Lectures complémentaires | Lectures complémentaires | ||
+ | |||
Applications HTML5 : https:// | Applications HTML5 : https:// | ||
Premiers pas : https:// | Premiers pas : https:// |
issue104/c_c.1452883540.txt.gz · Dernière modification : 2016/01/15 19:45 de d52fr