Try example from my-phonegap code