Phonegap events and connection info