Your SlideShare is downloading. ×
HTML Launcher
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

HTML Launcher

1,762
views

Published on

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,762
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. HTMLAndroid maruyama-r
  • 2. • WebView HTML/JavaScript/CSS HTML/JavaScript/CSS WebView : WebView Android Framework Linux
  • 3. JavaScript Java • Java public class JavaScriptInterface { public String getString(){ return "Hello"; } } .... jsInterface = new JavaScriptInterface(); webView.addJavascriptInterface(jsInterface, “API”);• JavaScript var msg = API.getString();
  • 4. Java JavaScript• JavawebView.loadUrl(“javascript:putString(‘Bye’)”);• JavaScriptfunction putString(msg){ document.write(msg);}
  • 5. (´ ω )
  • 6. ( ∀ )
  • 7. 1. JavaScript Java2. Bitmap3. Bitmap PNG4. PNG Base645. URI6. JavaScript
  • 8. URI • img src<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Reddot" /> http://en.wikipedia.org/wiki/Data_URI_scheme
  • 9. URI• 4/3• HTTP• CSS background-image CSS
  • 10. • img onload• SharedPreferences Android• Android2.1 Base64•