Changed is phonegap method