Seeing this picture represents my VS2015 cross-platform Moblie development tool was installed successfully.
After the installation was successful last week, I wanted to see the fun of cross-platform development, but I couldn't find the right entrance. This week again, adjusting supervised a little bit. The results found an entrance. So write a Hello world and share it with everyone. Let's take a look at the protagonist, that's Apache Cordova.
Apache Cordova is a set of device APIs that allow mobile app developers to use JavaScript to access the capabilities of local devices, such as cameras and accelerometers. It can be used in conjunction with UI frameworks such as jquery Mobile or Dojo Mobile or Sencha Touch, which can be used to develop smartphone apps using HTML, CSS, and JavaScript.
When using the Cordova API, the application can be built without local code (such as Java or Object C), using Web technology.
Because these JavaScript APIs are consistent across multiple device platforms and are created based on web standards, porting the application is convenient and basically doesn't change.
Apps that use Cordova are packaged into applications using the Platform SDK and can be downloaded and installed from the App Store for each device.
Cordova provides a unified set of JavaScript libraries for calls that support iOS, Android, Blackberry, Windows Phone, Palm WebOS, Bada, and Symbian.
If you want to develop a mobile app with Cordova, look at its documentation first. The documentation contains the Getting Started Guide, JavaScript API Reference, example program, Cordova upgrade, how to write your own Cordova plugin, and more.
Hello World
From the simple introduction above, you can see that it is mainly based on JavaScript.
1. Create a new project and find the template
2. View project Structure
3. View Simulator
It seems that WP simulator to be in the Win8 version can be run. Let's take a look at Android and iOS.
Android IOS
4. Find home page Write Hello World
5. Operation Effect of Android simulator
6. iOS simulator
7, this would like to create an apk on the real machine to try, no material may be the reason for the preview version of it.
Summarize
Hello World was created, still some excited, Microsoft This step is really good, a code, multiple platforms at random release, really great satisfaction, next is waiting time and developers to verify. But still have to wait for the official version of the more reliable, preview version may be some bugs make me very uncomfortable.
VS2015 uses Apache Cordova to access the features of local devices, such as cameras, accelerometers