The first Cordova Android app under Linux

Source: Internet
Author: User

The previous blog wrote the Linux under the Cordova + Ionic environment of the building, today to do the first simple app to explain it

The app was created yesterday by the command line. After a good time today, the study found using the Ionic command to create

App is different from the app package created with the Cordova command.

Ionic creates a folder with a few more files and folders. Because the relevant information is relatively small. I haven't figured out his directory structure and our

You need to manipulate the folder to drink the directory.

Focus on the Cordova directory:

This directory is clear (Piugins is the plugin directory through the Cordova command introduced plug-ins will be put in here, platforms is the support platform directory through the Cordova command can introduce Android iOS and other platform support), we need to manipulate the page is www The next index.html this page is

The page to display when the app is generated. Modify the content here to make your own page.

Modify the Index.js page in the www/js/directory to operate the background and interact with the native API (Cordova provides a number of plugins that can be viewed on the website: http://cordova.apache.org/)

Specific operation drink plugin usage You can access a nice website:

Hui Zhi network Baidu Search

The first Cordova Android app under Linux

Related Article

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.