Skip to content

Instantly share code, notes, and snippets.

View sumioturk's full-sized avatar

Yusuke Oishi sumioturk

  • OMCAS Inc., Stockholm
  • Japan
View GitHub Profile
@sumioturk
sumioturk / tmux.conf
Created August 8, 2013 05:55
tmux.conf for vim keybindings minimum
set-option -g prefix C-a
bind s split-window -v
bind v split-window -h
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
@sumioturk
sumioturk / Build.scala
Created September 8, 2013 16:54
Play Framework Build.scala for maven module sub-project dependency.
import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
val appName = "mainModule"
val appVersion = "1.0-SNAPSHOT"

以下Android公式ドキュメント Migrating to WebView in Android 4.4 の翻訳です。 間違いなどあればぜひご指摘ください。拙いですが誰かの役に立てば幸いです。

Migrating to WebView in Android 4.4

Android 4.4(API レベル 19)では、Chrominium ベースの新しい WebView が紹介されました。この変更で、WebView のパフォーマンス向上し、最新の Web ブラウザ追いつくために、HTML5、CSS3やJavaScript を標準サポートします。WebView を使っているアプリは、Android 4.4 以上からはこれらのアップデートの恩恵を受けることになります。

本ドキュメントは WebVeiew の変更点について説明します。なお、その変更は Android 4.4 以上、つまり targetSdkVersion を "19" 以上にした場合です。

Note: targetSdkVersion を "18" 以下にした場合、WebView は以下で述べるような挙動をすることを避けるために、"quirks モード" になります。これは、パフォーマンス向上と Web 標準に対応するためです。

/**
* Processes cpu load information from bugreport. Updates mDataset with the
* new data.
*
* @param br Reader providing the content
* @throws IOException if error reading file
*/
void readCpuDataset(BufferedReader br) throws IOException {
Pattern pattern = Pattern
.compile("(\\S+): (\\S+)% = (.+)% user . (.+)% kernel");