Click here to Skip to main content
15,886,858 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using accelerometer api in phonegap,in my example onDeviceReady() not fire.Why i am getting this error?please give me solution.I added the "phonegap-1.2.0.js" file only and took the example from"http://docs.phonegap.com/en/1.2.0/phonegap_accelerometer_accelerometer.md.html#accelerometer.watchAcceleration" this website.
Posted
Comments
Jeek_online 1-Jun-14 10:01am    
Are you using phonegap build?
If so, make sure that you included plugin in config.xml and also please specify what error you are facing?
Madhuri Kavuru 2-Jun-14 1:11am    
I am not getting any error...i placed alerts in functions,then alert of onDeviceReady() is not displayed. That's i asked this question.And i added config.xml file.Thank you for your response.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900