SlideShare uma empresa Scribd logo
1 de 28
NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency and Renewable Energy, operated bythe Alliance for Sustainable Energy, LLC.
Tips For The Quickly Changing
Mobile Landscape
InterLab 2010
Nick Muerdter
November 4, 2010
NATIONAL RENEWABLE ENERGY LABORATORY 2
NATIONAL RENEWABLE ENERGY LABORATORY
Image courtesy of Apple
NATIONAL RENEWABLE ENERGY LABORATORY 4
W H AT ’ S Y O U R TA R G E T ?
Photo by Katey Nicosia
http://www.flickr.com/photos/onegoodbumblebee/299174128
NATIONAL RENEWABLE ENERGY LABORATORY 5
OR
Photo by gnta
http://www.flickr.com/photos/gnt/3518267115© Twentieth Century Fox
NATIONAL RENEWABLE ENERGY LABORATORY
Lowest
Common
Denominator
Web Design
A separate, simplified website
Target smart and not-so-smart
phones
6
NATIONAL RENEWABLE ENERGY LABORATORY 7
NATIONAL RENEWABLE ENERGY LABORATORY 8
THINK SIMPLE
(AND RETRO)
NATIONAL RENEWABLE ENERGY LABORATORY
Make sense of phones Make sense of visitors
9
Google Analytics for Mobile
Websites
AWStats
WURFL
Photo by Peter Morville
http://www.flickr.com/photos/morville/3220105925
Photo by .m for matthijs
http://www.flickr.com/photos/matthijs/3514892055
NATIONAL RENEWABLE ENERGY LABORATORY 10
Photo by phoenixdailyphoto
http://www.flickr.com/photos/phoenixdailyphoto/1467681879
NATIONAL RENEWABLE ENERGY LABORATORY
44%
19%
15%
7%
10%
5%
24%
6%
40%
2%
26%
2%
0%
10%
20%
30%
40%
50%
Symbian BlackBerry Apple Microsoft Android Other
Market
Share
Worldwide
Handset Market Share vs. Web and App Usage
Handset Share
11
Handset Share: Gartner Q1 2010: Market Share
Web/App Usage: AdMob Operating System Share, May 2010
NATIONAL RENEWABLE ENERGY LABORATORY
Responsive
Web
Design
A single website
CSS media queries to target
mobile devices
Requires modern mobile browser
12
NATIONAL RENEWABLE ENERGY LABORATORY 13
NATIONAL RENEWABLE ENERGY LABORATORY 14
NATIONAL RENEWABLE ENERGY LABORATORY 15
NATIONAL RENEWABLE ENERGY LABORATORY 16
NATIONAL RENEWABLE ENERGY LABORATORY
<link rel="stylesheet" type="text/css"
href="common.css" media="all">
<link rel="stylesheet" type="text/css"
href="print.css" media="print">
17
<link rel="stylesheet" type="text/css"
href="mobile.css"
media="screen and (max-device-width: 480px)">
<link rel="stylesheet" type="text/css"
href="mobile_landscape.css"
media="screen and (max-device-width: 480px) and
(orientation: landscape)">
NATIONAL RENEWABLE ENERGY LABORATORY
Fancy
Application
Web Design
HTML5, JavaScript, and CSS3
Can provide a native app-like
experience
Requires modern mobile browser
18
NATIONAL RENEWABLE ENERGY LABORATORY 19
<input type="email">
<input type="url">
<input type="number">
<input type="tel">
Other keyboard types
Little Things Matter
NATIONAL RENEWABLE ENERGY LABORATORY
Stand On The Shoulders of Giants
jQTouch
jQuery Mobile
iUI
Sencha Touch
Zepto.js
20
NATIONAL RENEWABLE ENERGY LABORATORY 21
Photo by Dru!
http://www.flickr.com/photos/druclimb/480108350
Going Offline
Cache Manifest File
localStorage
Web SQL
NATIONAL RENEWABLE ENERGY LABORATORY
Taking It Further
Wrap it in an app
PhoneGap
22
Images courtesy of Apple and Google
NATIONAL RENEWABLE ENERGY LABORATORY
Native
Applications
Full access to a device’s capabilities
Native look and feel
Take advantage of native libraries
23
NATIONAL RENEWABLE ENERGY LABORATORY 24
Images courtesy of Apple
NATIONAL RENEWABLE ENERGY LABORATORY 25
Tools
Matter
Photo by Meanest Indian
http://www.flickr.com/photos/meanestindian/2260343214
NATIONAL RENEWABLE ENERGY LABORATORY 26
Architecture Matters
Photo by x-ray delta one
http://www.flickr.com/photos/x-ray_delta_one/4129207743
NATIONAL RENEWABLE ENERGY LABORATORY
Resources
Our simple mobile tool:
http://afdc.energy.gov/stations/m
WURFL:
http://wurfl.sourceforge.net/
Analytics:
http://code.google.com/mobile/analytics/docs/we
b/
http://awstats.sourceforge.net/
Responsive Web Design:
http://www.alistapart.com/articles/responsive-
web-design/
http://hicksdesign.co.uk/
HTML5:
http://diveintohtml5.org/
JavaScript Libraries:
http://www.jqtouch.com/
http://jquerymobile.com/
http://code.google.com/p/iui/
http://www.sencha.com/products/touch/
http://zeptojs.com/
The Gamut:
http://building-iphone-apps.labs.oreilly.com/
27
NATIONAL RENEWABLE ENERGY LABORATORY 28
Photo by Eleaf
http://www.flickr.com/photos/eleaf/2536358399

Mais conteúdo relacionado

Semelhante a InterLab: Mobile

Unlocked London - General Session
Unlocked London - General SessionUnlocked London - General Session
Unlocked London - General Session
Wayne Walls
 
Breaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with DrupalBreaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with Drupal
Acquia
 
Sustainable Strategies for The Mobile Web
Sustainable Strategies for The Mobile WebSustainable Strategies for The Mobile Web
Sustainable Strategies for The Mobile Web
Jesper Wøldiche
 
Responsive Web Design & the state of the Web
Responsive Web Design & the state of the WebResponsive Web Design & the state of the Web
Responsive Web Design & the state of the Web
Yiannis Konstantakopoulos
 

Semelhante a InterLab: Mobile (20)

Lotico oct 2010
Lotico oct 2010Lotico oct 2010
Lotico oct 2010
 
Unlocked London - General Session
Unlocked London - General SessionUnlocked London - General Session
Unlocked London - General Session
 
Breaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with DrupalBreaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with Drupal
 
Beyond Squishy: The Principles of Adaptive Design
Beyond Squishy: The Principles of Adaptive DesignBeyond Squishy: The Principles of Adaptive Design
Beyond Squishy: The Principles of Adaptive Design
 
Designing for Sustainability - WebVisions 2016
Designing for Sustainability - WebVisions 2016Designing for Sustainability - WebVisions 2016
Designing for Sustainability - WebVisions 2016
 
1.1. Introducing OutSystems Apps.en-US.pdf
1.1. Introducing OutSystems Apps.en-US.pdf1.1. Introducing OutSystems Apps.en-US.pdf
1.1. Introducing OutSystems Apps.en-US.pdf
 
Towards Wireless Collaboration
Towards Wireless CollaborationTowards Wireless Collaboration
Towards Wireless Collaboration
 
Beyond the IOPS: Flash Storage Essentials for Performance & Uptimes
Beyond the IOPS: Flash Storage Essentials for Performance & UptimesBeyond the IOPS: Flash Storage Essentials for Performance & Uptimes
Beyond the IOPS: Flash Storage Essentials for Performance & Uptimes
 
Tech Essentials Best Project Dec 2008
Tech Essentials   Best Project   Dec 2008Tech Essentials   Best Project   Dec 2008
Tech Essentials Best Project Dec 2008
 
Mobile SEO Tips - #SFGettingSmarter
Mobile SEO Tips - #SFGettingSmarterMobile SEO Tips - #SFGettingSmarter
Mobile SEO Tips - #SFGettingSmarter
 
180 Degrees East, SmartDevCon 2013, Katowice, Poland
180 Degrees East, SmartDevCon 2013, Katowice, Poland180 Degrees East, SmartDevCon 2013, Katowice, Poland
180 Degrees East, SmartDevCon 2013, Katowice, Poland
 
Mobile is slow - Over the Air 2013
Mobile is slow - Over the Air 2013Mobile is slow - Over the Air 2013
Mobile is slow - Over the Air 2013
 
Mobile SEO Considerations
Mobile SEO ConsiderationsMobile SEO Considerations
Mobile SEO Considerations
 
How React Native has Changed Web and Mobile Application Development, Engineer...
How React Native has Changed Web and Mobile Application Development, Engineer...How React Native has Changed Web and Mobile Application Development, Engineer...
How React Native has Changed Web and Mobile Application Development, Engineer...
 
Sustainable Strategies for The Mobile Web
Sustainable Strategies for The Mobile WebSustainable Strategies for The Mobile Web
Sustainable Strategies for The Mobile Web
 
Responsive Web Design & the state of the Web
Responsive Web Design & the state of the WebResponsive Web Design & the state of the Web
Responsive Web Design & the state of the Web
 
ISHOLA Babatunde Isaac (CV)
ISHOLA Babatunde Isaac (CV)ISHOLA Babatunde Isaac (CV)
ISHOLA Babatunde Isaac (CV)
 
Beyond being responsive, a mobile first strategy
Beyond being responsive, a mobile first strategyBeyond being responsive, a mobile first strategy
Beyond being responsive, a mobile first strategy
 
Responsive Design & Beyond [Code & Creativity Workshop]
Responsive Design & Beyond [Code & Creativity Workshop]Responsive Design & Beyond [Code & Creativity Workshop]
Responsive Design & Beyond [Code & Creativity Workshop]
 
Mobile User Experience
Mobile User ExperienceMobile User Experience
Mobile User Experience
 

Último

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Último (20)

Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 

InterLab: Mobile

  • 1. NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency and Renewable Energy, operated bythe Alliance for Sustainable Energy, LLC. Tips For The Quickly Changing Mobile Landscape InterLab 2010 Nick Muerdter November 4, 2010
  • 3. NATIONAL RENEWABLE ENERGY LABORATORY Image courtesy of Apple
  • 4. NATIONAL RENEWABLE ENERGY LABORATORY 4 W H AT ’ S Y O U R TA R G E T ? Photo by Katey Nicosia http://www.flickr.com/photos/onegoodbumblebee/299174128
  • 5. NATIONAL RENEWABLE ENERGY LABORATORY 5 OR Photo by gnta http://www.flickr.com/photos/gnt/3518267115© Twentieth Century Fox
  • 6. NATIONAL RENEWABLE ENERGY LABORATORY Lowest Common Denominator Web Design A separate, simplified website Target smart and not-so-smart phones 6
  • 8. NATIONAL RENEWABLE ENERGY LABORATORY 8 THINK SIMPLE (AND RETRO)
  • 9. NATIONAL RENEWABLE ENERGY LABORATORY Make sense of phones Make sense of visitors 9 Google Analytics for Mobile Websites AWStats WURFL Photo by Peter Morville http://www.flickr.com/photos/morville/3220105925 Photo by .m for matthijs http://www.flickr.com/photos/matthijs/3514892055
  • 10. NATIONAL RENEWABLE ENERGY LABORATORY 10 Photo by phoenixdailyphoto http://www.flickr.com/photos/phoenixdailyphoto/1467681879
  • 11. NATIONAL RENEWABLE ENERGY LABORATORY 44% 19% 15% 7% 10% 5% 24% 6% 40% 2% 26% 2% 0% 10% 20% 30% 40% 50% Symbian BlackBerry Apple Microsoft Android Other Market Share Worldwide Handset Market Share vs. Web and App Usage Handset Share 11 Handset Share: Gartner Q1 2010: Market Share Web/App Usage: AdMob Operating System Share, May 2010
  • 12. NATIONAL RENEWABLE ENERGY LABORATORY Responsive Web Design A single website CSS media queries to target mobile devices Requires modern mobile browser 12
  • 13. NATIONAL RENEWABLE ENERGY LABORATORY 13
  • 14. NATIONAL RENEWABLE ENERGY LABORATORY 14
  • 15. NATIONAL RENEWABLE ENERGY LABORATORY 15
  • 16. NATIONAL RENEWABLE ENERGY LABORATORY 16
  • 17. NATIONAL RENEWABLE ENERGY LABORATORY <link rel="stylesheet" type="text/css" href="common.css" media="all"> <link rel="stylesheet" type="text/css" href="print.css" media="print"> 17 <link rel="stylesheet" type="text/css" href="mobile.css" media="screen and (max-device-width: 480px)"> <link rel="stylesheet" type="text/css" href="mobile_landscape.css" media="screen and (max-device-width: 480px) and (orientation: landscape)">
  • 18. NATIONAL RENEWABLE ENERGY LABORATORY Fancy Application Web Design HTML5, JavaScript, and CSS3 Can provide a native app-like experience Requires modern mobile browser 18
  • 19. NATIONAL RENEWABLE ENERGY LABORATORY 19 <input type="email"> <input type="url"> <input type="number"> <input type="tel"> Other keyboard types Little Things Matter
  • 20. NATIONAL RENEWABLE ENERGY LABORATORY Stand On The Shoulders of Giants jQTouch jQuery Mobile iUI Sencha Touch Zepto.js 20
  • 21. NATIONAL RENEWABLE ENERGY LABORATORY 21 Photo by Dru! http://www.flickr.com/photos/druclimb/480108350 Going Offline Cache Manifest File localStorage Web SQL
  • 22. NATIONAL RENEWABLE ENERGY LABORATORY Taking It Further Wrap it in an app PhoneGap 22 Images courtesy of Apple and Google
  • 23. NATIONAL RENEWABLE ENERGY LABORATORY Native Applications Full access to a device’s capabilities Native look and feel Take advantage of native libraries 23
  • 24. NATIONAL RENEWABLE ENERGY LABORATORY 24 Images courtesy of Apple
  • 25. NATIONAL RENEWABLE ENERGY LABORATORY 25 Tools Matter Photo by Meanest Indian http://www.flickr.com/photos/meanestindian/2260343214
  • 26. NATIONAL RENEWABLE ENERGY LABORATORY 26 Architecture Matters Photo by x-ray delta one http://www.flickr.com/photos/x-ray_delta_one/4129207743
  • 27. NATIONAL RENEWABLE ENERGY LABORATORY Resources Our simple mobile tool: http://afdc.energy.gov/stations/m WURFL: http://wurfl.sourceforge.net/ Analytics: http://code.google.com/mobile/analytics/docs/we b/ http://awstats.sourceforge.net/ Responsive Web Design: http://www.alistapart.com/articles/responsive- web-design/ http://hicksdesign.co.uk/ HTML5: http://diveintohtml5.org/ JavaScript Libraries: http://www.jqtouch.com/ http://jquerymobile.com/ http://code.google.com/p/iui/ http://www.sencha.com/products/touch/ http://zeptojs.com/ The Gamut: http://building-iphone-apps.labs.oreilly.com/ 27
  • 28. NATIONAL RENEWABLE ENERGY LABORATORY 28 Photo by Eleaf http://www.flickr.com/photos/eleaf/2536358399

Notas do Editor

  1. First released 2007 App store launched in 2008
  2. The devices you’re targeting can dramatically change your options.
  3. Simple HTML. You can try to use simple CSS and simple JavaScript, but try to make things look and perform correctly with those disabled. BlackBerries can come with CSS and JavaScript disabled by default.
  4. WURFL Mobile detection, details on phone capabilities. Analytics Google Anlytics: Mobile version image based. AWStats: Server side. Accurate even for phones with images disabled.
  5. But designing for the lowest common denominator is boring. Mobile is quickly changing: People more likely to get new phones every couple years.
  6. Also, phones with nice browsers make up the majority of actual mobile web traffic. BUT: Still a lot of not-so-smart BlackBerries in DOE. Depending on your client, this may affect your decisions.
  7. Maintaining a separate iPhone version of your website is no fun. What about other devices? iPad? New 7” tablets? Works with modern mobile browsers (Webkit, Opera). Not with BlackBerries until OS 6. But you could use WURFL to deliver specific stylesheets to mobile devices with certain screen sizes. Great for content heavy sites. Controls styles only. Might be trickier for more complicated tools wanting to present a fundamentally different tool to mobile users.
  8. Navigation in separate right-hand column. Decorative arrow for current navigation. About/Our Clients in two columns.
  9. Navigation moved up. Decorative arrow gone. About/Our Clients now 1 column.
  10. Navigation has changed from vertical to horizontal. About/Our Clients details now at bottom of page. Images have shrunk to fit page width. Header text size is also smaller.
  11. Add additional stylesheets for different sized devices (iPad). You can make more complex media queries to add stylesheets for things like screen orientation, pixel density (iPhone 4 retina display), and more.
  12. Write a tool once, run on iPhone, Android, Palm Pre, BlackBerry OS 6, etc. Windows Phone 7 still lacking (based on IE7). Don’t worry until and if Windows Phone 7 takes off.
  13. Simple things help. Backwards-compatible HTML5 feature to bring up specific keyboards. In all other browsers falls back to type=“text” type=“url” has keyboard with “.com” and “/” buttons. type=“number” brings up number keyboard.
  14. Showtime example uses jQTouch Libraries add a lot of polish to make things feel more native. Transitions, animations, touch swiping, themes. jQTouch, iUI Layer on top of HTML. Targets iPhones and Android phones. jQuery Mobile: New alpha available. Official jQuery mobile. Sencha Touch Build your app in JavaScript. Like ExtJS. Targets phones and iPads. Commercial product. Zepto.js Minimal alternative to jQuery, targeting only Webkit. DIY, target whatever. Most libraries have focused on providing an iPhone like interface and experience. Be careful about interface expectation differences across platforms.
  15. Cache Manfiest File: Define all the file dependencies for offline. When the manfiest file changes, new files are cached. localStorage: Persistent storage for key/value pairs. Web SQL: Full, client-side SQL database.
  16. The app store model has changed how apps are found and distributed. Build a simple app web wrapper around your HTML site. PhoneGap does this and more. Provides JavaScript access to additional native phone features (accelerometer, camera, contacts) Covers iPhone, Android, Blackberry, Windows Mobile, Palm. Still doesn’t cover all native APIs.
  17. Some things will still be difficult or impossible to do without native APIs right now. OpenGL Games (WebGL in the future?) Augmented reality apps
  18. Some tools for cross platform native app development. Flash Packager for iPhone Be very aware of limitations Using native tools (xCode) can have benefits. Interface is harder to mess up (native look and feel, interface guidelines) You can get a lot of functionality for free.
  19. DRY: Don’t repeat yourself (or at least try). Try to share logic between applications and platforms when possible. Use web services to your advantage.