Use Apache Cordova in Visual Studio to develop Android, iOS programs (custom icons and splash screens)

Source: Internet
Author: User
Tags linux mint

Demand:

1.1 Computers with Linux installed, virtual machines are available, and the ImageMagick package is installed. I'm using Linux Mint, which is installed directly in the software manager.

2. Put the https://github.com/shamork/cordova-resource-generators/tree/shamork-patch-1/ Download the 3 SH files in the Visual-studio-tools-for-apache-cordova folder, put them on the desktop or somewhere else, and place your original images in the same directory. Suppose the name is Screen.png, (the recommended pixel is greater than 512x512, and the processed background is transparent), run sudo in the shell./genall.sh Screen.png Black Res

3. The Res directory is created in the above directory and the required files are generated

4.Copy the surviving res directory, covering the same name as the VS project.

5. Since all filenames are specified in Vs-mda/app.js and cannot be changed, that is, it is a good deal to do so, no additional configuration is required in config. SplashScreen, where the first line is set up and is automatically added when the project is generated. The second line sets the display time (in milliseconds) and the icon does not require any settings.

1 <  name= "SplashScreen"  value= "screen"/>2<    name = "Splashscreendelay" value = "/>"   

6. Refer to Https://msdn.microsoft.com/en-us/library/dn757053.aspx, where windows and WP8 have several file names that are inconsistent with the files generated in the empty project and have been modified to coincide with the resulting project.

7.Cordova Official website http://cordova.apache.org/docs/en/4.0.0/config_ref_images.md.html instructions are not available in VisualStudio, Because of the rules and filenames that are used in the Convention

Use Apache Cordova in Visual Studio to develop Android, iOS programs (custom icons and splash screens)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.