drupal and mobile devices komelin konstanin (eng)
TRANSCRIPT
Спонсоры
Генеральный спонсор
Серебряный спонсор Серебряный спонсор
Бронзовый спонсор Бронзовый спонсор
Организатор
Drupal + “mobiles” = ?
Mobile Site
Device detection
Switch a domain
Switch a context Switch a theme
Tools•Browscap•Mobile Tools•Mobile Theme, Switchtheme, ThemeKey •Persistent URL•Context
HTML5 and Responsive Design
Responsive techniques•HTML5 markup•Fluid grid•CSS3 Media Queries
For «other» browsers•HTML5 Shiv•Respond.js•Modernizr
Drupal base themes• AdaptiveTheme• Omega• Fusion
Mobile Application
Standard Way• iOS – Objective-C• Android – Java• Windows Phone 7 – C#/VB
JS Frameworks• jQuery Mobile• Sencha Touch
Alternative• HTML5 + JavaScript
What should I choose?
Centralized update
Mobile Site Mobile Application
Access to hardware device capabilities
Selling and promotion via Market
Centralized maintenance and development
Server-side API
• RSS– Read only, XML
• hook_menu– Custom operations, Custom response format
• hook_xmlrpc– XMLRPC, Custom operations, XML
• Services Module– Custom protocol, Custom operations, Custom
response format
Services Module
Protocols• REST• XML-RPC• SOAP
Authentication• Cookie• OAuth
Development
hook_services_resources
Operations•CRUD•Actions•Targeted Actions
REST Server
Request format (Content-type)• application/x-www-form-urlencoded• application/xml• application/json
Response format (Accept)• application/xml• application/json
Working with REST
Operation Request
Create POST /endpoint/node + body data
Retrieve GET /endpoint/node/123
Update PUT /endpoint/node/123 + body data
Delete DELETE /endpoint/node/123
Index GET /endpoint/node
Action POST /endpoint/apachesolr/reindex
Targeted Action POST /endpoint/node/123/publish
Windows Phone 7 Platform
• Manufacturer: Microsoft • Release year: 2010• Minimal requirements: 800 MHz, 256 MB,
GPS, Accelerometer, 3 MP• Technologies: .NETCF, Silverlight / XNA• IDE: Visual Studio 2010 Express• User Interface Design: Metro• Developer Resource: App Hub • Application Store: Windows Phone
Marketplace• User Guide: Zune• Price: from 10,000 Rubles
Demo
Useful Resources
• Drupal.org http://drupal.org/• HTML5 http://slides.html5rocks.com• Responsive Web Design
http://msdn.microsoft.com/magazine/hh653584.aspx• PhoneGap http://phonegap.com/• Titanium http://www.appcelerator.com/• jQuery Mobile http://jquerymobile.com/• Sencha Touch http://www.sencha.com• Services 3.x Documentation http://drupal.org/node/736522• Poster for Firefox https://addons.mozilla.org/firefox/addon/poster/• Microsoft App Hub http://create.msdn.com• Source codes of Catch a Smile demo app
https://github.com/konstantin-komelin
Спонсоры
Генеральный спонсор
Серебряный спонсор Серебряный спонсор
Бронзовый спонсор Бронзовый спонсор
Организатор