One, environmental support
1, Android development environment (jdk+ Android Sdk+as/eclipse)
2,node.js
First of all, the relationship between PhoneGap and Cordova: PhoneGap is the original name, Cordova is PhoneGap was donated to Apache after the project name, PhoneGap name is also preserved ... Do not delve into the details.
Two, installation
after installing Nodejs, you can use its NPM command (similar to the Liunx command).
1, Installation:
Npminstall-g Cordova
2, after the completion of the version check to determine the completion of the installation:
Cordova-version
3, create the project:
CD H:\MobileTools\PhoneGap\Projects #进入文件夹要创建的项目的文件夹下面
Cordova Create Hello Com.example.helloHelloWorld #这个指令创建一个名为hello的项目, package named Com.example.hello
Cordova Platform Add Android #命令添加android平台
Then open the project in as:
will see a lot more than the Android project we built earlier , and the use of Acitivy in addition:
The WebView is omitted, and the page loading is done directly in the activity's OnCreate method.
Third, the trial experience
1, the environment is still quite complex, but also found that nodejs in the front-end frame with more and more, do not know later will not be web development, the appearance of nodejs+h5+c3 such standard.
2, for the native code, provides a very multi-class library, on the Web UI, we can choose their own front-end framework to match. Specific performance is unknown.
Hybird App--cordova (original phonegap) installation configuration