In the company to do projects, found that someone in large projects using Cordova technology. Do is the project of Kunshan. Before I heard of PhoneGap, but also tested, but the sense of efficiency is not very good, not how to study, and then see that they do the project is good, so want to try.
Build the development environment:
1. Before using Cordova, you need to install node. js http://www.nodejs.org/, then add the installation directory to the environment variable path, and cmd input npm-v see if the installation was successful.
2. cmd input NPM install-g Cordova install Cordova.
3. Create a new folder, and then cmd the CD into that folder.
4. New Cordova Project , Cordova create Testcordova Com.honghe.testCordova Testcordova. A new Cordova project was created under this folder.
5. Add Android app , cmd into CD Testcordova, enter Cordova platform add Android. This adds an Android version.
7. Import the built-in Android project into eclipse
After the import we can see two items, run the Testcordova on it.
We can look at the directory, is actually the web of the set of things (I have also done Web,o (∩_∩) o haha)
Run the program to see the interface:
OK, the development environment configuration is not very simple, if you have any questions can contact me.
The code has been uploaded to GitHub.
My github Address: https://github.com/dongweiq/study
Welcome attention, Welcome to star O (∩_∩) O. What's the problem please contact [email protected] qq714094450
(original) First knowledge of Cordova (I.)