08 July, 2014

Google IO: What's new in WebView

Video: https://www.youtube.com/watch?v=0tH-KHvifMk

For China:
链接: http://pan.baidu.com/s/1ntsPwSD 密码: suvj

What's new in WebView:
A developer preview WebView is shipping with the Android L Developer Preview. The developer preview version number is

User agent:
Mozilla/5.0 (Linux; Android 4.4; Nexus 5 Build/_BuildID_) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/ Mobile Safari/537.36

New APIs:

You can't set the user-agent string used for XMLHttpRequests made from JavaScript. Those requests always use the default user-agent string.

Geolocation API
(requires android.permission.ACCESS_COARSE_LOCATION and/or android.permission.ACCESS_FINE_LOCATION permissions)

Vibration API
(requires android.permission.VIBRATE permission)

DevTools: remote debugging

For China:
在inspect的时候,需要翻墙,VPN,或者Proxy,否则会出现空白页面Blank Page。。