Crosswalk What is it? It is a Chromium -based browser component used to replace WebView in android4.x .
It's advantages:
1 increased significantly Web Program Performance
2 support for the latest HTML5 features
3 resolving compatibility issues with different devices
Disadvantages of it:
1 does not support IOS, nor does it support Android4.0 the following versions
2 packed apk file will increase by nearly 20M
you can decide whether to use it according to the actual situation.
here's how to integrate crosswalk into a common phonegap application.
First, download the appropriate match Phonegap/cordova of the Crosswalk SDK .
: https://crosswalk-project.org/documentation/downloads.html
Open the Web page, the last two lines of the form we need to download, if the phone CPU is Intel platform please download Cordova Android
(x86) , others please download Cordova Android (ARM) .
unzip the downloaded SDK to the hard drive and Framework folder Import Eclipse the.
in the Eclipse will appear in the list of items:
Frameworkxwalk_core_library
Tip: If there is a Styles.xml file error, you can delete the file, there will be no Shadow To the sound.
three, in your PhoneGap Right-click Properties on the item ( Property ), in the pop-up window, switch to Android tab, locate the below Library area.
will be Cordovalib removed, and will:
Frameworkxwalk_core_library
add to the list and click OK.
Four, for PhoneGap The project adds the following permissions:
<uses-permission android:name= "Android.permission.ACCESS_WIFI_STATE"/><uses-permission android:name= " Android.permission.ACCESS_NETWORK_STATE "/>
Five, in the following order Build Project:
Xwalk_core_libraryframeworkyour Application Project
Tip: How to builD project? Select the item, right-click and select build PRo ject.
Once you're done, pack the App again and you'll find Crosswalk has been integrated into the APP.
High-performance PhoneGap App: Consolidating crosswalk