add phonegap sample code