SlideShare a Scribd company logo
GREE
HTML5+JavaScript & Android



                      (@ku)
       http://t.gree.jp/ku0522
•                GREE

    • HTML5
    •
• GREE Android
 • HTML
GREE
• 2010/8/9
•          ajax

• iOS, android(xperia)
• HTML5+CSS3+javascript
• http://t.gree.jp/
ajax +
Android Bazaar and Conference 2011 Winter
Android Bazaar and Conference 2011 Winter
android,iOS      webkit



• ajax
• HTML5
• CSS3, animation, transform
HTML Forms

• placeholder
•
  •
  •             UI
placeholder
    <input placeholder=‘   ’ />

    •
    •


•   android1.6
•   iOS4.0     textarea
<input type=email />



•   android
•
<input type=number />
• url
• date
• search
           UI
CSS3

•        3

•
•
•
• device-pixel-ratio
Selectors Level 3
• :last-child/:first-child
• :not(.loading)
• input[type='text']
• etc.
-webkit-gradient



-webkit-border-radius
-webkit-transition
CSS



• jQuery
 • fps
 •
• height: auto → height: 0
Android Bazaar and Conference 2011 Winter
transform3d
•        3
• iPhone                 GPU




Google Code Blog: CSS3 Transitions and Transforms in Gmail for the iPad http://
  googlecode.blogspot.com/2010/08/css3-transitions-and-transforms-in.html
GIF
       Issue 3422 - android - Animated GIF not
       working in browser


          • canvas
          • js

Issue 3422 - android - Animated GIF not working in browser
   http://code.google.com/p/android/issues/detail?id=3422
devicePixelRatio

•                   devicePixelRatio=1.5
    •          1                             1.5

•
    •2
    •   <meta name=viewport target-densitydpi=device-dpi />
Android
•


• IS03
Android Bazaar and Conference 2011 Winter
class GreeAppJs             WebView
                 WebView.addJavascriptInterface
     void uploadImageFile



WebView.loadUrl('javascript:setMoodImage(b64Img)')
iOS

    •   webView:shouldStartLoadWithRequest:navigationType:

    •   stringByEvaluatingJavaScript:

•                     HTML               android
    iOS

•
• HTML5
•
•

• android   HTML
Android Bazaar and Conference 2011 Winter
Issue 10059 - android - Browser does not render Unicode snowman
character (U+2603) http://code.google.com/p/android/issues/detail?id=10059
Application cache
• manifest
                 (~10M)

•
             (   )

•
Web SQL Database
•   SQLite
•
              (~10M)

•   SQL



•   js HTML
Web Storage
•               Key Value Store

•               5M~10M



•   cookie             js



•
              cookie

More Related Content

Android Bazaar and Conference 2011 Winter