Demo of phonegap API