Html5 framework PhoneGap API details (with complete notes)

Source: Internet
Author: User

PhoneGap source code and address:
1. Git address
Git: // git.apache.org/incubator-cordova-android.git git: // git.apache.org/incubator-cordova-js.git

2. Eclipse Association
Due to the ADT plug-in BUG, you need to manually create the properties file for association.

PhoneGap event processing

1. deviceready
This event is triggered when the PhoneGap application is fully loaded.

When using PhoneGap to develop applications, deviceready events are very common.

PhoneGap contains two foundations: native and JavaScript. When native is loaded, some custom images will be called, while JavaScript will be loaded after DOM is loaded.

This may cause JavaScript to be called before the image is loaded. Using the deviceready event can solve such problems well. It can ensure that PhoneGap is triggered only after full loading.

2. pause
Triggered when the PhoneGap application is set to the background

3. resume
Triggered when the PhoneGap application is reset from the background to the foreground

4. online
Triggered when the PhoneGap application connects to the Internet

5. offline
Triggered when the PhoneGap application is disconnected from the Internet

 

 


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.