add phonegape sample codes