This is a Phonegap tutorial from http://coenraets.org/blog/phonegap-tutorial/