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