A phonegap framework tutorial