High-performance PhoneGap APP: Integrated Crosswalk

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.