Android WebView wrapper based on chromium
The current performance of Android webview is so poor. ChromiumWebView gives your application early access to the newest features in Chromium, and removes the variability due to different WebView implementations in different versions of Android.
Inspired by ChromeView project, our goal is to provide full Android WebKit compatible API, so the web apps or hybrid apps can easily immigrate to chromium.
This section explains how to set up your Android project to use ChromiumWebView.
Check out the repository in your Eclipse workspace, and make your project use
ChromiumWebView as a library. In Eclipse, right-click your project directory,
select Properties
, choose the Android
category, and click on the Add
button
in the Library
section.
Copy assets/webviewchromium.pak
to your project's assets
directory. Star
this bug if you
agree that this is annoying.
In your Application subclass, call ChromeIntializer.initialize and pass it the application's context. For example,
import com.mogoweb.chrome.ChromeInitializer;
import android.app.Application;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
ChromeInitializer.initialize(this);
}
}
Now you can use ChromiumWebView as the same as Android WebView except for different package name.
There is a sample project to illustrate the usage of ChromiumWebView in the test folder. It is only a shell program that can navigate website.
The directories below contain code from the The Chromium Project, which is subject to the copyright and license on the project site.
assets/
libs/
src/com/googlecode
src/org/chromium
Some of the source code in src/com/mogoweb/chrome
has been derived from the
Android source code, and is therefore covered by the
Android project licenses.
The rest of the code is Copyright 2013 mogoweb, All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.