SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
WebView



WebKit
agenda

•

• javascript

• assets

• javascript
• Manifest   permission

• WebView

• loadUrl
Manifest
Activity




WevView    loadUrl
•
• javascript           ?
•        Google Maps
javascirpt



•   setJavaScriptEnabled   true
•   Google
html
•                  html
    –
    –   loadUrl(file:///android asset/xxx.html);”

• assets                                      OK
javascript

• javascript interface

•

• http://db.tt/N5fz7L

• download               import
javascript

•

•

• html5 + CSS + javascript
Android              javascript       function
<script type="text/javascript">

  function reloadFunction() {

      javascript        function
  WebView.loadUrl("javascript:reloadFunction()");

Mais conteúdo relacionado

Mais procurados

Binary Studio Academy PRO. JS course. Lecture 2. backbone
Binary Studio Academy PRO. JS course. Lecture 2. backboneBinary Studio Academy PRO. JS course. Lecture 2. backbone
Binary Studio Academy PRO. JS course. Lecture 2. backboneBinary Studio
 
Java2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integrationJava2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integrationMite Mitreski
 
Continuous delivery@LesFurets - DC Continuous delivery meetup
Continuous delivery@LesFurets - DC Continuous delivery meetupContinuous delivery@LesFurets - DC Continuous delivery meetup
Continuous delivery@LesFurets - DC Continuous delivery meetupRaphaël Brugier
 
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)Nitya Narasimhan
 
New Tools for Visualization in JavaScript - Sept. 2011
New Tools for Visualization in JavaScript - Sept. 2011New Tools for Visualization in JavaScript - Sept. 2011
New Tools for Visualization in JavaScript - Sept. 2011philogb
 
JavaScript para Graficos y Visualizacion de Datos
JavaScript para Graficos y Visualizacion de DatosJavaScript para Graficos y Visualizacion de Datos
JavaScript para Graficos y Visualizacion de Datosphilogb
 
Google cloud functions
Google cloud functionsGoogle cloud functions
Google cloud functionsPéter Nagy
 
以 Kotlin 快速打造 Mobile Backend
以 Kotlin 快速打造 Mobile Backend以 Kotlin 快速打造 Mobile Backend
以 Kotlin 快速打造 Mobile BackendShengyou Fan
 
Vue.jsをはじめる
Vue.jsをはじめるVue.jsをはじめる
Vue.jsをはじめるReo Mori
 
Building API in the cloud using Azure Functions
Building API in the cloud using Azure FunctionsBuilding API in the cloud using Azure Functions
Building API in the cloud using Azure FunctionsAleksandar Bozinovski
 
JavaScript innovaties: ECMAScript 6 & 7
JavaScript innovaties: ECMAScript 6 & 7JavaScript innovaties: ECMAScript 6 & 7
JavaScript innovaties: ECMAScript 6 & 7Rick Beerendonk
 
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> KubernetesJJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> KubernetesMauricio (Salaboy) Salatino
 
DevOps with GitHub Actions
DevOps with GitHub ActionsDevOps with GitHub Actions
DevOps with GitHub ActionsNilesh Gule
 
Grails Connecting to MySQL
Grails Connecting to MySQLGrails Connecting to MySQL
Grails Connecting to MySQLashishkirpan
 
Front end microservices - October 2019
Front end microservices - October 2019Front end microservices - October 2019
Front end microservices - October 2019Mikhail Kuznetcov
 
Leaving Flatland: Getting Started with WebGL- SXSW 2012
Leaving Flatland: Getting Started with WebGL- SXSW 2012Leaving Flatland: Getting Started with WebGL- SXSW 2012
Leaving Flatland: Getting Started with WebGL- SXSW 2012philogb
 
Building Papers
Building PapersBuilding Papers
Building PapersMahmoud
 

Mais procurados (19)

Binary Studio Academy PRO. JS course. Lecture 2. backbone
Binary Studio Academy PRO. JS course. Lecture 2. backboneBinary Studio Academy PRO. JS course. Lecture 2. backbone
Binary Studio Academy PRO. JS course. Lecture 2. backbone
 
Java2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integrationJava2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integration
 
Intro to sbt-web
Intro to sbt-webIntro to sbt-web
Intro to sbt-web
 
Continuous delivery@LesFurets - DC Continuous delivery meetup
Continuous delivery@LesFurets - DC Continuous delivery meetupContinuous delivery@LesFurets - DC Continuous delivery meetup
Continuous delivery@LesFurets - DC Continuous delivery meetup
 
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)
 
New Tools for Visualization in JavaScript - Sept. 2011
New Tools for Visualization in JavaScript - Sept. 2011New Tools for Visualization in JavaScript - Sept. 2011
New Tools for Visualization in JavaScript - Sept. 2011
 
JavaScript para Graficos y Visualizacion de Datos
JavaScript para Graficos y Visualizacion de DatosJavaScript para Graficos y Visualizacion de Datos
JavaScript para Graficos y Visualizacion de Datos
 
Google cloud functions
Google cloud functionsGoogle cloud functions
Google cloud functions
 
以 Kotlin 快速打造 Mobile Backend
以 Kotlin 快速打造 Mobile Backend以 Kotlin 快速打造 Mobile Backend
以 Kotlin 快速打造 Mobile Backend
 
Vue.jsをはじめる
Vue.jsをはじめるVue.jsをはじめる
Vue.jsをはじめる
 
Building API in the cloud using Azure Functions
Building API in the cloud using Azure FunctionsBuilding API in the cloud using Azure Functions
Building API in the cloud using Azure Functions
 
JavaScript innovaties: ECMAScript 6 & 7
JavaScript innovaties: ECMAScript 6 & 7JavaScript innovaties: ECMAScript 6 & 7
JavaScript innovaties: ECMAScript 6 & 7
 
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> KubernetesJJUG CCC 2018 : Lessons Learned: Spring Cloud ->  Docker -> Kubernetes
JJUG CCC 2018 : Lessons Learned: Spring Cloud -> Docker -> Kubernetes
 
DevOps with GitHub Actions
DevOps with GitHub ActionsDevOps with GitHub Actions
DevOps with GitHub Actions
 
Grails Connecting to MySQL
Grails Connecting to MySQLGrails Connecting to MySQL
Grails Connecting to MySQL
 
Front end microservices - October 2019
Front end microservices - October 2019Front end microservices - October 2019
Front end microservices - October 2019
 
Leaving Flatland: Getting Started with WebGL- SXSW 2012
Leaving Flatland: Getting Started with WebGL- SXSW 2012Leaving Flatland: Getting Started with WebGL- SXSW 2012
Leaving Flatland: Getting Started with WebGL- SXSW 2012
 
Building Papers
Building PapersBuilding Papers
Building Papers
 
Angularjs Basics
Angularjs BasicsAngularjs Basics
Angularjs Basics
 

Destaque (19)

Coderetreat
CoderetreatCoderetreat
Coderetreat
 
20101106
2010110620101106
20101106
 
Service
ServiceService
Service
 
2012.10.27 のアンカンファレンスのスライド
2012.10.27 のアンカンファレンスのスライド2012.10.27 のアンカンファレンスのスライド
2012.10.27 のアンカンファレンスのスライド
 
Dialog
DialogDialog
Dialog
 
201002 Android
201002 Android201002 Android
201002 Android
 
Introduction ofintent
Introduction ofintentIntroduction ofintent
Introduction ofintent
 
Activity intent
Activity intentActivity intent
Activity intent
 
Http client
Http clientHttp client
Http client
 
Git Workshop 20130720
Git Workshop 20130720Git Workshop 20130720
Git Workshop 20130720
 
JAG overview (100222)
JAG overview (100222)JAG overview (100222)
JAG overview (100222)
 
20110205.conference
20110205.conference20110205.conference
20110205.conference
 
20120512
2012051220120512
20120512
 
ojag20120519
ojag20120519ojag20120519
ojag20120519
 
20100911
2010091120100911
20100911
 
20110205.apple1emu
20110205.apple1emu20110205.apple1emu
20110205.apple1emu
 
Osc2009-LT
Osc2009-LTOsc2009-LT
Osc2009-LT
 
View andlayout
View andlayoutView andlayout
View andlayout
 
Map view
Map viewMap view
Map view
 

Mais de YAMANE Toshiaki (16)

読書会開催提案
読書会開催提案読書会開催提案
読書会開催提案
 
Lambda ECS Worker Pattern
Lambda ECS Worker PatternLambda ECS Worker Pattern
Lambda ECS Worker Pattern
 
Okinawa makers
Okinawa makersOkinawa makers
Okinawa makers
 
Geek な Recipe の共有
Geek な Recipe の共有Geek な Recipe の共有
Geek な Recipe の共有
 
Designers hack
Designers hackDesigners hack
Designers hack
 
底辺部な勉強会へのお誘い
底辺部な勉強会へのお誘い底辺部な勉強会へのお誘い
底辺部な勉強会へのお誘い
 
Make androidproject.2
Make androidproject.2Make androidproject.2
Make androidproject.2
 
Hello world
Hello worldHello world
Hello world
 
Android Fundamentals
Android FundamentalsAndroid Fundamentals
Android Fundamentals
 
X hago3
X hago3X hago3
X hago3
 
20110205.jsonengine
20110205.jsonengine20110205.jsonengine
20110205.jsonengine
 
20110205.linux 0.01
20110205.linux 0.0120110205.linux 0.01
20110205.linux 0.01
 
Async processing
Async processingAsync processing
Async processing
 
20101002
2010100220101002
20101002
 
20100703
2010070320100703
20100703
 
Preferences
PreferencesPreferences
Preferences
 

Web view