-

- -

Saturday, December 17, 2016

107 XDK: Create Cordova Barcode Scanner Project



107 XDK: Create Cordova Barcode Scanner Project

To create a cordova barcode scanner apps, you need to add an additional cordova plugin ie barcode scanner plugin.
After you have added the plug in, your plug in management panel (in the project page) will look like below:
Notice that In the above example, the name of plug in is “phonegap-plugin-barcodescanner”. Phonegap was the initial name of cross-platform technology bought by Adobe. Adobe later donated this technology to Apache Foundation and it was given a new name, Cordova.
Fortunately, Intel XDK has provided an example project that uses this plug in. This tutorial demonstrates the steps to create Cordova Barcode Scanner Project based on the Intel XDK example project.

1) Create a new project

Select Samples and Demos.
Select General.
Select Barcode Scanner.
Click Continue.

2) Specify Project Name and Location.

Click Create.
Make sure you have an Internet connection.
Optionally, you may choose not to optimize with crosswalk (resulting with smaller package file size but having a risk of not compatible with various versions of android)

3) Simulate

Bear in mind that you cannot test Cordova functionality in the simulator.
You need to Build and Deploy into a real device.

4) Build

If you have not configured the Build Requirement, read the steps in http://xdk-steps.blogspot.my/2016/12/104-xdk-how-to-build-cordova-for-android.html .
Otherwise, select the target platform and click Build.
Wait for the process to complete.
Deploy to your mobile device and check that all functions work.

DOWNLOAD


No comments:

Post a Comment