added phone gap library and on resume event