Android WebView wrapper based on chromium

Overview

ChromiumWebView

Android WebView wrapper based on chromium

Notice

This is just a experimental project, don't use it in product.

If you have problem when git pull, please re-clone this repository. I updated the commits information in 06/19/2014.

Why you need

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.

You can use ChromiumWebView as the same as Android WebView except for different package name.

TintBrowser

The TintBrowser is forked from https://github.com/Anasthase/TintBrowser, but use Chromium WebView as web engine. The TintBrowser is a full functional browser that you can use it as start point.

Setting Up

This section explains how to set up your Android project to use ChromiumWebView.

Get the Code

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 Data

Copy assets/webviewchromium.pak to your project's assets directory. Star this bug if you agree that this is annoying.

TestShell

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.

How to build libchromeview

A blog describes the source management of chromium which ChromiumWebView based on. It is written in chinese.

Environment

  1. Please set up your build environment by following the instructions on the Chromium wiki:
  2. You need to install extra pre-requisites to build for Android, covered in building Chrome for Android.
  3. depot_tools contains the following tools, used to manage and build libchromeview from source:
    • gclient manages code and dependencies.
    • ninja is the recommended tool for building libchromeview on Android. Its website contains detailed usage instructions.

Download the source

  1. Create a source directory:
cd <home directory>
mkdir chromium-src
cd chromium-src
  1. Auto-generate gclient's configuration file (.gclient):
gclient config --name=src/chromeview git://github.com/mogoweb/chromium_webview.git

You can replace git:// with ssh://git@ to use your GitHub credentials when checking out the code. 3. From the same directory containing the .gclient file, fetch the source with:

gclient sync

Building libchromium_webview

  1. Setup build environment
cd chromium-src
source ./chromeview/build/envsetup.sh
mogo_gyp
  1. build libchromeview
ninja -C out/Debug libchromeview -j8

Copyright and License

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.

Comments
  • crashes when you rotate the device

    crashes when you rotate the device

    i've got it working, albeit sluggishly, and it seems to crash now whenever the screen rotation changes.

    see logcat:

    01-14 19:35:57.296: A/chromium(16363): [FATAL:content_view_core_impl.cc(730)] Check failed: view_android_. 01-14 19:35:57.296: A/chromium(16363): #00 0x6ae407fd /data/app-lib/gg.destiny.app-2/libstandalonelibwebviewchromium.so+0x0021b7fd 01-14 19:35:57.296: A/chromium(16363): #01 0x6be549ff /data/app-lib/gg.destiny.app-2/libstandalonelibwebviewchromium.so+0x0122f9ff 01-14 19:35:57.296: A/chromium(16363): #02 0x6bf45857 /data/app-lib/gg.destiny.app-2/libstandalonelibwebviewchromium.so+0x01320857 01-14 19:35:57.296: A/chromium(16363): #03 0x6be51503 /data/app-lib/gg.destiny.app-2/libstandalonelibwebviewchromium.so+0x0122c503 01-14 19:35:57.296: A/chromium(16363): #04 0x6be53f6f /data/app-lib/gg.destiny.app-2/libstandalonelibwebviewchromium.so+0x0122ef6f 01-14 19:35:57.296: A/chromium(16363): #05 0x418b3bcf /system/lib/libdvm.so+0x0001dbcf 01-14 19:35:57.296: A/chromium(16363): #06 0x418e4125 /system/lib/libdvm.so+0x0004e125 01-14 19:35:57.296: A/chromium(16363): #07 0x418bcfe3 /system/lib/libdvm.so+0x00026fe3 01-14 19:35:57.296: A/chromium(16363): #08 0x418c3fa3 /system/lib/libdvm.so+0x0002dfa3 01-14 19:35:57.296: A/chromium(16363): #09 0x418c163b /system/lib/libdvm.so+0x0002b63b 01-14 19:35:57.296: A/chromium(16363): #10 0x418f6867 /system/lib/libdvm.so+0x00060867 01-14 19:35:57.296: A/chromium(16363): #11 0x418fe7c9 /system/lib/libdvm.so+0x000687c9 01-14 19:35:57.296: A/chromium(16363): #12 0x418bcfe3 /system/lib/libdvm.so+0x00026fe3 01-14 19:35:57.296: A/chromium(16363): #13 0x418c3fa3 /system/lib/libdvm.so+0x0002dfa3 01-14 19:35:57.296: A/chromium(16363): #14 0x418c163b /system/lib/libdvm.so+0x0002b63b 01-14 19:35:57.296: A/chromium(16363): #15 0x418f6583 /system/lib/libdvm.so+0x00060583 01-14 19:35:57.296: A/chromium(16363): #16 0x418dfd0d /system/lib/libdvm.so+0x00049d0d 01-14 19:35:57.296: A/chromium(16363): #17 0x40211de7 /system/lib/libandroid_runtime.so+0x0004cde7 01-14 19:35:57.296: A/chromium(16363): #18 0x40212b0d /system/lib/libandroid_runtime.so+0x0004db0d 01-14 19:35:57.296: A/chromium(16363): #19 0x4002705d /system/bin/app_process+0x0000105d 01-14 19:35:57.296: A/chromium(16363): #20 0x40124403 /system/lib/libc.so+0x0000e403 01-14 19:35:57.296: A/libc(16363): Fatal signal 6 (SIGABRT) at 0x00003feb (code=-6), thread 16363 (gg.destiny.app)

    opened by hayksaakian 9
  • ShellActivity crashes

    ShellActivity crashes

    The sample project ShellActivity crashes when visit http://www.activeshare.cn/OEBPS/xhtml/p1.html.

    The detailed error message is: 08-06 21:48:30.825: I/LibraryLoader(15907): loading: webviewchromium 08-06 21:48:30.825: D/dalvikvm(15907): Trying to load lib /data/app-lib/com.mogoweb.chrome.shell-2/libwebviewchromium.so 0x424a94f0 08-06 21:48:30.875: D/dalvikvm(15907): Added shared lib /data/app-lib/com.mogoweb.chrome.shell-2/libwebviewchromium.so 0x424a94f0 08-06 21:48:30.885: I/LibraryLoader(15907): loaded: webviewchromium 08-06 21:48:30.885: I/chromium(15907): [INFO:library_loader_hooks.cc(72)] Chromium logging enabled: level = 0, default verbosity = 0 08-06 21:48:30.905: I/BrowserProcessMain(15907): Initializing chromium process, renderers=0 08-06 21:48:30.996: I/ResourceExtractor(15907): Extracting resource webviewchromium.pak 08-06 21:48:31.076: W/chromium(15907): [WARNING:resource_bundle.cc(255)] locale_file_path.empty() 08-06 21:48:31.076: W/chromium(15907): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation 08-06 21:48:31.096: D/libEGL(15907): loaded /system/lib/egl/libEGL_adreno200.so 08-06 21:48:31.096: D/libEGL(15907): loaded /system/lib/egl/libGLESv1_CM_adreno200.so 08-06 21:48:31.096: D/libEGL(15907): loaded /system/lib/egl/libGLESv2_adreno200.so 08-06 21:48:31.106: D/dalvikvm(15907): GC_CONCURRENT freed 337K, 9% free 5058K/5528K, paused 2ms+2ms, total 19ms 08-06 21:48:31.106: I/Adreno200-EGL(15907): eglInitialize:269: EGL 1.4 QUALCOMM build: Nondeterministic AU_full_mako_PARTNER-ANDROID/JB-MR1-DEV_CL2961380_release_AU (CL2961380) 08-06 21:48:31.106: I/Adreno200-EGL(15907): Build Date: 12/10/12 Mon 08-06 21:48:31.106: I/Adreno200-EGL(15907): Local Branch: 08-06 21:48:31.106: I/Adreno200-EGL(15907): Remote Branch: m/partner-android/jb-mr1-dev 08-06 21:48:31.106: I/Adreno200-EGL(15907): Local Patches: NONE 08-06 21:48:31.106: I/Adreno200-EGL(15907): Reconstruct Branch: NOTHING 08-06 21:48:31.126: D/dalvikvm(15907): GC_FOR_ALLOC freed 375K, 12% free 5065K/5692K, paused 12ms, total 12ms 08-06 21:48:31.166: D/dalvikvm(15907): GC_CONCURRENT freed 387K, 11% free 5087K/5692K, paused 2ms+2ms, total 15ms 08-06 21:48:31.196: D/dalvikvm(15907): GC_FOR_ALLOC freed 85K, 10% free 5178K/5692K, paused 11ms, total 11ms 08-06 21:48:31.246: D/dalvikvm(15907): GC_CONCURRENT freed 371K, 9% free 5320K/5816K, paused 1ms+1ms, total 14ms 08-06 21:48:31.296: D/dalvikvm(15907): GC_CONCURRENT freed 369K, 9% free 5464K/5960K, paused 1ms+2ms, total 19ms 08-06 21:48:31.296: D/dalvikvm(15907): WAIT_FOR_CONCURRENT_GC blocked 8ms 08-06 21:48:31.316: E/chromium(15907): [ERROR:aw_browser_context.cc(204)] Not implemented reached in virtual quota::SpecialStoragePolicy* android_webview::AwBrowserContext::GetSpecialStoragePolicy() 08-06 21:48:31.316: E/chromium(15907): [ERROR:aw_browser_context.cc(204)] Not implemented reached in virtual quota::SpecialStoragePolicy* android_webview::AwBrowserContext::GetSpecialStoragePolicy() 08-06 21:48:31.316: E/chromium(15907): [ERROR:aw_browser_context.cc(204)] Not implemented reached in virtual quota::SpecialStoragePolicy* android_webview::AwBrowserContext::GetSpecialStoragePolicy() 08-06 21:48:31.316: E/chromium(15907): [ERROR:aw_browser_context.cc(204)] Not implemented reached in virtual quota::SpecialStoragePolicy* android_webview::AwBrowserContext::GetSpecialStoragePolicy() 08-06 21:48:31.316: E/chromium(15907): [ERROR:aw_browser_context.cc(204)] Not implemented reached in virtual quota::SpecialStoragePolicy* android_webview::AwBrowserContext::GetSpecialStoragePolicy() 08-06 21:48:31.316: E/chromium(15907): [ERROR:aw_browser_context.cc(204)] Not implemented reached in virtual quota::SpecialStoragePolicy* android_webview::AwBrowserContext::GetSpecialStoragePolicy() 08-06 21:48:31.326: W/org.chromium.content.browser.ContentViewCore(15907): Setting contentDescription to 'Web View' as no value was specified. 08-06 21:48:31.386: W/ChildProcessLauncher(15907): Tried to bind a non-existent connection to pid: 15907 08-06 21:48:31.396: I/chromium(15907): [INFO:SkUtilsArm.cpp(177)] Device supports ARM NEON instructions! 08-06 21:48:31.426: D/OpenGLRenderer(15907): Enabling debug mode 0 08-06 21:48:31.446: I/chromium(15907): [INFO:simple_index_file.cc(320)] Simple Cache Index is being restored from disk. 08-06 21:48:39.284: D/dalvikvm(15907): GC_FOR_ALLOC freed 177K, 7% free 5588K/5960K, paused 21ms, total 21ms 08-06 21:48:39.284: I/dalvikvm-heap(15907): Grow heap (frag case) to 8.387MB for 2946064-byte allocation 08-06 21:48:39.294: D/dalvikvm(15907): GC_FOR_ALLOC freed 1K, 5% free 8464K/8840K, paused 14ms, total 14ms 08-06 21:48:39.304: W/AwContents(15907): nativeOnDraw failed; clearing to background color. 08-06 21:48:39.364: D/dalvikvm(15907): GC_CONCURRENT freed 1K, 5% free 8463K/8840K, paused 11ms+4ms, total 61ms 08-06 21:48:39.555: D/dalvikvm(15907): GC_FOR_ALLOC freed 2879K, 7% free 5587K/5960K, paused 12ms, total 12ms 08-06 21:48:39.555: I/dalvikvm-heap(15907): Grow heap (frag case) to 8.386MB for 2946064-byte allocation 08-06 21:48:39.575: D/dalvikvm(15907): GC_FOR_ALLOC freed 0K, 5% free 8464K/8840K, paused 12ms, total 12ms 08-06 21:48:39.575: W/AwContents(15907): nativeOnDraw failed; clearing to background color. 08-06 21:48:39.595: D/dalvikvm(15907): GC_CONCURRENT freed <1K, 5% free 8464K/8840K, paused 1ms+5ms, total 23ms 08-06 21:48:39.615: D/dalvikvm(15907): GC_FOR_ALLOC freed 2877K, 7% free 5587K/5960K, paused 24ms, total 24ms 08-06 21:48:39.625: I/dalvikvm-heap(15907): Grow heap (frag case) to 8.386MB for 2946064-byte allocation 08-06 21:48:39.635: D/dalvikvm(15907): GC_FOR_ALLOC freed <1K, 5% free 8464K/8840K, paused 16ms, total 16ms 08-06 21:48:39.645: W/AwContents(15907): nativeOnDraw failed; clearing to background color. 08-06 21:48:39.655: D/dalvikvm(15907): GC_CONCURRENT freed <1K, 5% free 8464K/8840K, paused 3ms+2ms, total 19ms 08-06 21:48:39.685: D/dalvikvm(15907): GC_FOR_ALLOC freed 2877K, 7% free 5587K/5960K, paused 23ms, total 23ms 08-06 21:48:39.695: I/dalvikvm-heap(15907): Grow heap (frag case) to 8.386MB for 2946064-byte allocation 08-06 21:48:39.715: D/dalvikvm(15907): GC_FOR_ALLOC freed 0K, 5% free 8464K/8840K, paused 25ms, total 25ms 08-06 21:48:39.725: W/AwContents(15907): nativeOnDraw failed; clearing to background color. 08-06 21:48:39.745: D/dalvikvm(15907): GC_CONCURRENT freed <1K, 5% free 8464K/8840K, paused 3ms+2ms, total 23ms 08-06 21:48:39.745: D/dalvikvm(15907): WAIT_FOR_CONCURRENT_GC blocked 13ms 08-06 21:48:39.745: I/dalvikvm-heap(15907): Grow heap (frag case) to 11.196MB for 2946064-byte allocation 08-06 21:48:39.765: D/dalvikvm(15907): GC_FOR_ALLOC freed 2877K, 28% free 8464K/11720K, paused 15ms, total 15ms 08-06 21:48:39.765: W/AwContents(15907): nativeOnDraw failed; clearing to background color. 08-06 21:48:39.775: D/dalvikvm(15907): GC_CONCURRENT freed <1K, 28% free 8464K/11720K, paused 2ms+2ms, total 19ms 08-06 21:48:39.775: D/dalvikvm(15907): WAIT_FOR_CONCURRENT_GC blocked 4ms 08-06 21:48:39.785: I/dalvikvm-heap(15907): Grow heap (frag case) to 11.196MB for 2946064-byte allocation 08-06 21:48:39.795: D/dalvikvm(15907): GC_FOR_ALLOC freed 2877K, 5% free 8464K/8836K, paused 17ms, total 17ms 08-06 21:48:39.795: W/AwContents(15907): nativeOnDraw failed; clearing to background color. 08-06 21:48:39.805: A/libc(15907): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 15907 (eb.chrome.shell)

    opened by xiebopublic 7
  • JavaScript doesn't work

    JavaScript doesn't work

    Any javascript in HTML doens't work.

    I have javascript setting set to true: webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

    If I use classic webView it works but this chromium not.

    opened by minonger 5
  • Pulled Latest Code, Get Error: UnsatisfiedLinkError: Native method not found

    Pulled Latest Code, Get Error: UnsatisfiedLinkError: Native method not found

    I have pulled the latest code but my app crashes immediately with:

    10-16 12:03:39.293: E/AndroidRuntime(19977): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: org.chromium.android_webview.AwSettings.nativeGetDefaultUserAgent:()Ljava/lang/String;
    10-16 12:03:39.293: E/AndroidRuntime(19977):    at org.chromium.android_webview.AwSettings.nativeGetDefaultUserAgent(Native Method)
    10-16 12:03:39.293: E/AndroidRuntime(19977):    at org.chromium.android_webview.AwSettings.access$0(AwSettings.java:1379)
    10-16 12:03:39.293: E/AndroidRuntime(19977):    at org.chromium.android_webview.AwSettings$LazyDefaultUserAgent.<clinit>(AwSettings.java:103)
    
    opened by JohnLouderback 5
  • Some devices of HTML5 video playback only sound no picture (system browser can display)

    Some devices of HTML5 video playback only sound no picture (system browser can display)

    The test found no problem in the moblie phone , in some android devices( tv box) html5 video playback only sound no picture( system browser can diaplay).

    opened by chzhewl 3
  • browser crashing

    browser crashing

    Hi, I imported the project into eclipse and build the apk for the mogobrowser. but the application is crashing when launch "Unfortunately Browser stopped working". could anybody build the working browser apk.? can share the apk.?

    opened by sharmarahul25 3
  • Crash on webview fling

    Crash on webview fling

    Hi there, The webview crashes when i scroll(fling)

    03-25 17:28:10.679: A/chromium(16606): [FATAL:in_process_view_renderer.cc(763)] Check failed: current_fling_velocity.IsZero(). 03-25 17:28:10.679: A/chromium(16606): #00 0x6196e7fd /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x0021b7fd 03-25 17:28:10.679: A/chromium(16606): #01 0x6190d4b1 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001ba4b1 03-25 17:28:10.679: A/chromium(16606): #02 0x6298817b /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x0123517b 03-25 17:28:10.679: A/chromium(16606): #03 0x62b3bbbf /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x013e8bbf 03-25 17:28:10.679: A/chromium(16606): #04 0x62b3b22f /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x013e822f 03-25 17:28:10.679: A/chromium(16606): #05 0x61df74f7 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006a44f7 03-25 17:28:10.679: A/chromium(16606): #06 0x62b3b7f5 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x013e87f5 03-25 17:28:10.679: A/chromium(16606): #07 0x62aceae7 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x0137bae7 03-25 17:28:10.679: A/chromium(16606): #08 0x62b3b149 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x013e8149 03-25 17:28:10.679: A/chromium(16606): #09 0x61df6cff /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006a3cff 03-25 17:28:10.679: A/chromium(16606): #10 0x61e08527 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006b5527 03-25 17:28:10.679: A/chromium(16606): #11 0x61e08c49 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006b5c49 03-25 17:28:10.679: A/chromium(16606): #12 0x61de79f7 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006949f7 03-25 17:28:10.679: A/chromium(16606): #13 0x61de7ee9 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x00694ee9 03-25 17:28:10.679: A/chromium(16606): #14 0x61de82a1 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006952a1 03-25 17:28:10.679: A/chromium(16606): #15 0x61e061e5 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006b31e5 03-25 17:28:10.679: A/chromium(16606): #16 0x61df58b1 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x006a28b1 03-25 17:28:10.679: A/chromium(16606): #17 0x61dbe44f /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x0066b44f 03-25 17:28:10.679: A/chromium(16606): #18 0x629893ad /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x012363ad 03-25 17:28:10.679: A/chromium(16606): #19 0x62989547 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x01236547 03-25 17:28:10.679: A/chromium(16606): #20 0x629889f5 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x012359f5 03-25 17:28:10.679: A/chromium(16606): #21 0x6190d25b /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001ba25b 03-25 17:28:10.679: A/chromium(16606): #22 0x6190ca03 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001b9a03 03-25 17:28:10.679: A/chromium(16606): #23 0x6190df9d /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001baf9d 03-25 17:28:10.679: A/chromium(16606): #24 0x6190e1a9 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001bb1a9 03-25 17:28:10.679: A/chromium(16606): #25 0x6190e311 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001bb311 03-25 17:28:10.679: A/chromium(16606): #26 0x6190e3e1 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001bb3e1 03-25 17:28:10.679: A/chromium(16606): #27 0x61919d29 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001c6d29 03-25 17:28:10.679: A/chromium(16606): #28 0x6191bad9 /data/app-lib/com.mface.live-2/libstandalonelibwebviewchromium.so+0x001c8ad9 03-25 17:28:10.679: A/chromium(16606): #29 0x408de3cf /system/lib/libdvm.so+0x000203cf 03-25 17:28:10.679: A/chromium(16606): #30 0x4090ebc9 /system/lib/libdvm.so+0x00050bc9 03-25 17:28:10.679: A/chromium(16606): #31 0x408e7863 /system/lib/libdvm.so+0x00029863 03-25 17:28:10.679: A/chromium(16606): #32 0x408ec21b /system/lib/libdvm.so+0x0002e21b 03-25 17:28:10.679: A/chromium(16606): #33 0x40920ee1 /system/lib/libdvm.so+0x00062ee1 03-25 17:28:10.679: A/chromium(16606): #34 0x40928ba5 /system/lib/libdvm.so+0x0006aba5 03-25 17:28:10.679: A/chromium(16606): #35 0x408e7863 /system/lib/libdvm.so+0x00029863 03-25 17:28:10.679: A/chromium(16606): #36 0x408ec21b /system/lib/libdvm.so+0x0002e21b 03-25 17:28:10.679: A/chromium(16606): #37 0x40920c23 /system/lib/libdvm.so+0x00062c23 03-25 17:28:10.679: A/chromium(16606): #38 0x4090a8f5 /system/lib/libdvm.so+0x0004c8f5 03-25 17:28:10.679: A/chromium(16606): #39 0x401e62f3 /system/lib/libandroid_runtime.so+0x0004f2f3 03-25 17:28:10.679: A/chromium(16606): #40 0x401e6f85 /system/lib/libandroid_runtime.so+0x0004ff85 03-25 17:28:10.679: A/chromium(16606): #41 0x4005205d /system/bin/app_process+0x0000105d 03-25 17:28:10.679: A/chromium(16606): #42 0x4007bd2f /system/lib/libc.so+0x0000dd2f

    Any help is highly appreciated.

    Thanks

    opened by VeeruPV 3
  • Unable to call JavaScript Method from Chromium webView

    Unable to call JavaScript Method from Chromium webView

    I tried calling webView.loadUrl("javascript : TestJavaScripMethod() ") , where TestJavaScripMethod is java script methiw defined in loaded HTML. then my app is crashing with error "Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 31909 (JavaBridge)" in logcat

    It works fine with android default webview, but it is not working with chromium webview

    opened by ani29 3
  • Only background color renders

    Only background color renders

    I'm having a very weird issue. No errors or anything, and a remote inspector shows that all of the elements are present and all of the script execute successfully, but my chrome webview only renders the body's background color. Absolutely nothing else can be seen. It was working flawlessly in the vanilla Android WebView (except performance was poor). Any insight into this issue? I'm testing on a Droid Razr Maxx HD running Android 4.1.2

    Thanks, -John

    opened by JohnLouderback 3
  • Unable to build

    Unable to build

    I have pulled the latest code but app crashes immediately with:

    02-26 10:11:49.489: D/dalvikvm(1241): Trying to load lib /data/app-lib/com.mogoweb.chrome.shell-1/libstandalonelibwebviewchromium.so 0x40ce9a20 02-26 10:11:49.708: D/dalvikvm(1241): Added shared lib /data/app-lib/com.mogoweb.chrome.shell-1/libstandalonelibwebviewchromium.so 0x40ce9a20 02-26 10:11:49.708: E/chromium(1241): [0226/101149:ERROR:webview_entry_point.cc(28)] JNI_OnLoad: content::RegisterLibraryLoaderEntryHook

    opened by amitpandeyjss 2
  • crashes when you open a dropdown

    crashes when you open a dropdown

    This is with the stock testshell app. Opening a dropdown on the mogoweb website results in a android.content.res.Resources$NotFoundException. This is because the relevant style is not in any style.xml (see https://android.googlesource.com/platform/external/chromium_org/+/d9151b0/content/public/android/java/res/values-v17/styles.xml).

    Currently I have changed the code to not access style and just directly use R.layout.

    Trace: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java:1014) at android.content.res.Resources.loadXmlResourceParser(Resources.java:2139) at android.content.res.Resources.getLayout(Resources.java:853) at android.view.LayoutInflater.inflate(LayoutInflater.java:394) at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:371) at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362) at org.chromium.content.browser.input.SelectPopupDialog$SelectPopupArrayAdapter.getView(SelectPopupDialog.java:80)

    opened by ariados 2
  • 按照readme 构建出错

    按照readme 构建出错

    1.系统环境 Centos 7.6 2.获取代码 gclient config --name=src/chromeview https//github.com/mogoweb/chromium_webview.git gclient sync ________ running 'vpython src/chromeview/tools/fetch_deps.py -v' in '/mnt/md127/hsz/chrome/chromview' Traceback (most recent call last): File "src/chromeview/tools/fetch_deps.py", line 90, in main() File "src/chromeview/tools/fetch_deps.py", line 87, in main sys.exit(deps_fetcher.DoGclientSyncForChromium()) File "src/chromeview/tools/fetch_deps.py", line 60, in DoGclientSyncForChromium gclient_utils.CheckCallAndFilterAndHeader(gclient_cmd, AttributeError: 'module' object has no attribute 'CheckCallAndFilterAndHeader' Error: Command 'vpython src/chromeview/tools/fetch_deps.py -v' returned non-zero exit status 1 in /mnt/md127/hsz/chrome/chromview

    opened by imhsz 0
  • Update to new version of Chromium

    Update to new version of Chromium

    I know this isn't exactly an active project, but Chromium nearly 10 versions ahead of this repo. Would it be too much to ask for this to be updated to the newest version?

    opened by ghost 0
  • 4.0.4 webview transparent

    4.0.4 webview transparent

    I'tried to get the webview transparent on galaxy tab 10.1(4.0.4 android version) device; I used "setBackgroundColor(Color.parseColor("#00FFFFFF"));" and "setBackgroundColor(Color.TRANSPARENT)" but i got a white color background.

    opened by muhammedgunes 0
  • Poor performance

    Poor performance

    Hello, I experience serous performance issue running chromium_webview on HTC One M7 Android version 5.02. The native WebView performs (scrolling, navigating) much faster than chromium_webview.

    I played with android:hardwareAccelerated value. I turn it to true/false but it seems that it does not have any effect. Can you please advise how to improve scrolling/navigating performance of chromium_webview? Thanks in advance!

    P.S. I am talking about branch master. I also tried dev_2062 but it crashes on my phone on this line: setNewAwContents(nativeInit(mBrowserContext)); AwContents.java (line 605)

    opened by martinswacke 3
Owner
alex
微信公众号: 云水木石
alex
MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.

About MarkdownView (Markdown For Android) is an Android library that helps you display Markdown text or files (local/remote) as formatted HTML, and st

Feras Alnatsheh 1k Dec 20, 2022
Kotlin Wrapper Library of Material-UI

kotlin-material-ui Kotlin Wrapper Library of Material-UI Core: Lab: Installation repositories { jcenter() // or maven { url 'https://dl.bintra

Subroh Nishikori 78 Nov 24, 2022
Muirwik - a Material UI React wrapper written in Kotlin

Muirwik Welcome to Muirwik. Muirwik gets it name from being a Material UI React wrapper written in Kotlin. For more information, see the above links (

null 134 Nov 8, 2022
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.

Android StackBlur Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. Th

Enrique López Mañas 3.6k Dec 29, 2022
Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component.

Draggable Panel DEPRECATED. This project is not maintained anymore. Draggable Panel is an Android library created to build a draggable user interface

Pedro Vicente Gómez Sánchez 3k Dec 6, 2022
Wizard Pager is a library that provides an example implementation of a Wizard UI on Android, it's based of Roman Nurik's wizard pager (https://github.com/romannurik/android-wizardpager)

Wizard Pager Wizard Pager is a library that provides an example implementation of a Wizard UI on Android, it's based of Roman Nurik's wizard pager (ht

Julián Suárez 520 Nov 11, 2022
Stepper Touch for Android based on MaterialUp submission

Stepper-Touch For more updates on this and other open-source projects, follow me on twitter ?? here Stepper Touch for Android based on a Material Up s

Dion Segijn 667 Jan 1, 2023
TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing.

This project isn't maintained anymore. It is now recommended to use https://github.com/peterLaurence/MapView. MapView is maintained by Peter, one of o

Mike Dunn 1.5k Dec 29, 2022
Drag and drop to reorder items in a list, grid or board for Android. Based on RecyclerView. Also supports swiping items in a list.

DragListView DragListView can be used when you want to be able to re-order items in a list, grid or a board. It also supports horizontal swiping of it

Magnus Woxblom 658 Nov 30, 2022
Android Material Json Form Wizard is a library for creating beautiful form based wizards within your app just by defining json in a particular format.

Android Json Wizard Android Json Wizard is a library for creating beautiful form based wizards within your app just by defining json in a particular f

Vijay Rawat 355 Nov 11, 2022
Android View that displays different content based on its state

MultiStateView Android View that displays different content based on its state. Based off of MeetMe/MultiStateView The four different states the view

Kenny 1.2k Dec 16, 2022
Provides 9-patch based drop shadow for view elements. Works on API level 9 or later.

Material Shadow 9-Patch This library provides 9-patch based drop shadow for view elements. Works on API level 14 or later. Target platforms API level

Haruki Hasegawa 481 Dec 19, 2022
TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View

TourGuide TourGuide is an Android library. It lets you add pointer, overlay and tooltip easily, guiding users on how to use your app. Refer to the exa

Tan Jun Rong 2.6k Jan 5, 2023
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development.

Bubbles for Android Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your

Txus Ballesteros 1.5k Jan 2, 2023
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+)

RippleView View that imitates Ripple Effect on click which was introduced in Android L. Usage For a working implementation, Have a look at the Sample

Muthuramakrishnan Viswanathan 1.2k Dec 30, 2022
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out

FabricView - A new canvas drawing library for Android. The library was born as part of a project in SD Hacks (www.sdhacks.io) on October 3rd. It is cu

Antwan Gaggi 1k Dec 13, 2022
SwipeBack for Android Activities to do pretty the same as the android "back-button" will do, but in a really intuitive way by using a swipe gesture

SwipeBack SwipeBack is for Android Activities to do pretty the same as the android "back-button" will do, but in a really intuitive way by using a swi

Hannes Dorfmann 697 Dec 14, 2022
A backport of the SwitchPreference component that was introduced on Android 4 (ICS / level 14). This port works on Android 2.1+ (Eclair MR1 / level 7).

Android Switch Preference Backport A backport of the SwitchPreference component that was introduced on Android 4 (ICS / level 14). This port works on

Benoit Lubek 498 Dec 29, 2022