Mobile development RSS CSDN home> Mobile development

With Construct 2* Crosswalk* will be introduced into the Android* game

Published in10:04 2016-05-11| Time reading| sourceCSDN| ZeroArticle comments| authorIntel

Abstract:Crosswalk is a Google for the Chrome Android browser, has become the application of the package. Because it is based on a real browser, and thus can support all of the features contained in WebGL, including Web, Audio Web, Fonts Chrome, etc..

 Forum Scirra posts from the use of:Post link. thank Ashley Publish the original article.

Crosswalk is a Google for the Chrome Android browser, has become the application of the package. Because it is based on a real browser, and thus can support all of the features contained in WebGL, including Web, Audio Web, Fonts Chrome, etc..

Crosswalk compatibility

Because Crosswalk is based on for Android Chrome, it is able to support the same characteristics. Like for Android Chrome, it only supports the use of Android 4 or more versions of the device. However, most of the devices are used in more than 4, and soon the old version will completely disappear.

Compared with for Android Chrome version, Crosswalk also made some minor changes:

  • Crosswalk does not have the address bar or tab characteristics; the game is run in full screen with native applications. This means there is no need to use the browser object.Fullscreen RequestOperation.
  • For Android Chrome will start playing music only when the touch event is triggered. Crosswalk can play music at any time.
  • In Crosswalk, the browser objectBack button On,Menu button OnandSearch button OnTriggers on devices that contain the three buttons. In for Android Chrome, they will not be triggered.

Crosswalk test

Test the game or the easiest way is toFor Android ChromeRun it in your browser. useOver Wifi PreviewBe able to test quickly and easily on other devices. Because Crosswalk is based on for Android Chrome, so in addition to the aboveCrosswalkThe performance and performance of the compatibility section are similar.

In addition, the use of Crosswalk itself is also known for testingCrosswalk compatibilityWhether the difference between the game will have an impact on. To this end, you can use the Player Crosswalk application. You can directly access the download link below to download the APK:

Test app.APKs Crosswalk

Note that they are not from Play Store Google, and therefore cannot be automatically updated. Please make sure to check the updates regularly via the link above.

Will URL preview-over-Wifi type player Crosswalk application, use the Crosswalk to run the game. But please note that the browser objectBack button On,Menu button OnandSearch button OnTriggers cannot be used in Player applications; they will work only if you use XDK to build applications, as described above.

Build your application in XDK

If you want to build applications, you need to useIntel XDK. Click the link to download the XDK and install it.

After installation, run Intel XDK. If necessary, register a new account and log in.

Now you can project items from Construct 2.File > To > Export...Derivation, selectionAndroidOptions.

Android in Construct Choose 2
clickNext. Select an import project location. Note the location of the project. clickExport.

Return XDK. openProjectsTab. clickA New Project Start.

New Project XDK Start

choiceAn Existing HTML5 Project Import.

HTML5 project import

Import the root directory of the exported Construct 2 project, and name the application for your application. After completion, click on the bottom rightCreate.

to change intoProjectTab (if not transferred). Project settings will appear in this location.

Settings in Project Tab Project

openSettings Build. In the interface, you can edit the application details, such as its name and version.

openAnd Permissions Plugins. Note, please chooseOptions Plugin. If you enable too many options, the application will request a large number of licenses, which is not a normal phenomenon. In addition to the following options, you should set all options to "No"":

Accelerometer(if you use the device to move from the Touch object)
CameraAndCapture(if you use a Media User object with a camera or microphone input)
Compass(if you use the device direction from the Touch object)
EventsShould always be set to "Yes""
Geolocation(if you use the Geolocation object)
Splashscreen(if you want to display the splash screen at the time of loading).

openIcons and Splash Screens Launch, upload a variety of sizes icon and flash screen pictures.

Now switch toBuildTab. clickFor Android Crosswalk'Build'button.

For crosswalk build

clickApp Now Build. It may take a few minutes to build an application. But once completed, you will be able to download the APK. In addition, it will send a link to your XDK account via email, or you may send links to other locations via email. Test APK on the actual device has a convenient way to send a link to your email account that you can access via the device. Then, you only need to view the e-mail on the Android device, click on the link and download and install the APK.

You can choose to download both x86 and ARM versions. Most Android devices are using the ARM version, so you might choose this version when you are tested, but please submit both at the same time, in order to support more devices as much as possible. Now your APK can be submitted to Play Store Google! You can passPlay Google developer consoleTo submit.

For more help, or if you have any questions about the Crosswalk, you can also access theIntel HTML5 tools Forum.

For more details please see:Intel developer

top
Zero
step on
Zero