Simple Phonegap Android applicaton to test online / offline events